Learn R Programming

apollo (version 0.0.1)

apollo_validateHBcontrol: Validates the HB_control list of parameters

Description

Validates the HB_control list of parameters and sets default values for the omitted ones.

Usage

apollo_validateHBcontrol(HB_control, hb_dist, theta_start, theta_fixed)

Arguments

HB_control

List. Contains options for bayesian estimation. See ?RSGHB::doHB for details. Parameters modelname, gVarNamesFixed, gVarNamesNormal, gDIST, svN and FC are automatically set based on the other arguments of this function.

hb_dist

Numeric vector. Contains a number representing the distribution of each parameter to be estimated. Possible values are as follows.

-1

Fixed (as in non-random) parameter.

1

Normal.

2

Positive log-normal.

3

Negative log-normal.

4

Positive censored normal.

5

Negative censored normal.

6

Johnson SB.

theta_start

Named numeric vector. Names and starting values of the parameters.

theta_fixed

Character vector. Names of the fixed parameters (as in those whose value is constant throughout estimation).

Value

Validated HB_control

Details

This function is only necessary when using bayesian estimation.