Set initial values of scale parameter and modal ranking
Source:R/set_initial_values.R
set_initial_values.Rd
Set initial values used by the Metropolis-Hastings algorithm.
Arguments
- rho_init
Numeric vector specifying the initial value of the latent consensus ranking \(\rho\). Defaults to NULL, which means that the initial value is set randomly. If
rho_init
is provided whenn_clusters > 1
, each mixture component \(\rho_{c}\) gets the same initial value.- alpha_init
Numeric value specifying the initial value of the scale parameter \(\alpha\). Defaults to
1
. Whenn_clusters > 1
, each mixture component \(\alpha_{c}\) gets the same initial value. When chains are run in parallel, by providing an argumentcl = cl
, thenalpha_init
can be a vector of of lengthlength(cl)
, each element of which becomes an initial value for the given chain.
Value
An object of class "BayesMallowsInitialValues"
, to be
provided to the initial_values
argument of compute_mallows()
or
compute_mallows_mixtures()
.
See also
Other preprocessing:
get_transitive_closure()
,
set_compute_options()
,
set_model_options()
,
set_priors()
,
set_progress_report()
,
set_smc_options()
,
setup_rank_data()