This function checks the start_vlaues, data, availabilities, draws and fixedparams for validity. If this function runs without error, then the inputs are valid for the maxLikelihood function. These checks are important, because an error in the internal C++ code will cause the Rstudio session to crash. Incidentally, if there is concern of this happening, it is recommended to run the script from the command line, using Rscript.
check_inputs(
model_spec,
start_values,
data,
availabilities,
draws,
fixedparam,
weights
)
Nothing
The specified Model
Named vector of proposed start values for the model
the dataset on which to estimate
The availabilities for the alternatives in the model specification
The matrix of random draws
Named vector of parameters to be fixed
The weights vector