Validates the apollo_HB list of parameters and sets default values for the omitted ones.
apollo_validateHBControl(
apollo_HB,
apollo_beta,
apollo_fixed,
apollo_control,
silent = FALSE
)
List. Contains options for bayesian estimation. See doHB for details.
Parameters modelname
, gVarNamesFixed
, gVarNamesNormal
,
gDIST
, svN
and FC
are automatically set based on the
other arguments of this function.
It should also include a named character vector called hbDist
identifying
the distribution of each parameter to be estimated. Possible values are as follows.
"F": Fixed - parameter kept at its starting value (not estimated).
"NR": Non-random parameter, i.e. with a generic value across individuals.
"N": Normal.
"LN+": Positive log-normal.
"LN-": Negative log-normal.
"CN+": Positive censored normal.
"CN-": Negative censored normal.
"JSB": Johnson SB.
Named numeric vector. Names and values for parameters.
Character vector. Names (as defined in apollo_beta
) of parameters whose value should not change during estimation.
value is constant throughout estimation).
List. Options controlling the running of the code. See apollo_validateInputs.
Boolean. TRUE to keep the function from printing to the console. Default is FALSE.
Validated apollo_HB
This function is only necessary when using bayesian estimation.