Learn R Programming

rmdcev (version 1.2.3)

maxlikeMDCEV: maxlikeMDCEV

Description

Fit a MDCEV model with MLE

Usage

maxlikeMDCEV(stan_data, initial.parameters, mle_options, parms_info, ...)

Arguments

stan_data

data for model formatted from processMDCEVdata

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.

mle_options

modeling options for MLE

parms_info

information on parameters

...

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