View source: R/model_fitting.R
set_initial_gibbs_values | R Documentation |
This function sets initial values for the Gibbs sampler.
set_initial_gibbs_values( N, T, J, P_f, P_r, C, ordered = FALSE, ranked = FALSE, suff_stat = NULL )
N |
The number (greater or equal 1) of decision makers. |
T |
The number (greater or equal 1) of choice occasions or a vector of choice
occasions of length |
J |
The number (greater or equal 2) of choice alternatives. |
P_f |
The number of covariates connected to a fixed coefficient (can be 0). |
P_r |
The number of covariates connected to a random coefficient (can be 0). |
C |
The number (greater or equal 1) of latent classes. |
ordered |
A boolean, |
ranked |
TBA |
suff_stat |
Optionally the output of |
A list of initial values for the Gibbs sampler.
RprobitB:::set_initial_gibbs_values( N = 2, T = 3, J = 3, P_f = 1, P_r = 2, C = 2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.