Learn R Programming

rmdcev (version 1.2.3)

BayesMDCEV: BayesMDCEV

Description

Fit a MDCEV model using Bayesian estimation and Stan

Usage

BayesMDCEV(
  stan_data,
  bayes_options,
  initial.parameters,
  keep.samples = FALSE,
  include.stanfit = TRUE,
  ...
)

Arguments

stan_data

data for model

bayes_options

list of Bayes options

initial.parameters

The default for fixed and random parameter specifications is to use random starting values. For LC models, the default is to use slightly adjusted MLE point estimates from the single class model. Initial parameter values should be included in a named list. For example, the LC "hybrid" specification initial parameters can be specified as: initial.parameters = list(psi = array(0, dim = c(K, num_psi)), gamma = array(1, dim = c(K, num_alt)), alpha = array(0.5, dim = c(K, 0)), scale = array(1, dim = c(K))) where K is the number of classes (i.e. K = 1 is used for single class models), num_psi is number of psi parameters, and num_alt is number of non-numeraire alternatives.

keep.samples

default is FALSE,

include.stanfit

default isTRUE,

...

Additional parameters to pass on to rstan::stan and rstan::sampling.