set_initial_gibbs_values: Set initial values for the Gibbs sampler

View source: R/model_fitting.R

set_initial_gibbs_valuesR Documentation

Set initial values for the Gibbs sampler

Description

This function sets initial values for the Gibbs sampler.

Usage

set_initial_gibbs_values(
  N,
  T,
  J,
  P_f,
  P_r,
  C,
  ordered = FALSE,
  ranked = FALSE,
  suff_stat = NULL
)

Arguments

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 N (i.e. a decision maker specific number). Per default, T = 1.

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, FALSE per default. If TRUE, the choice set alternatives is assumed to be ordered from worst to best.

ranked

TBA

suff_stat

Optionally the output of sufficient_statistics.

Value

A list of initial values for the Gibbs sampler.

Examples

RprobitB:::set_initial_gibbs_values(
  N = 2, T = 3, J = 3, P_f = 1, P_r = 2, C = 2
)

RprobitB documentation built on May 29, 2024, 7:59 a.m.