check_inputs: Check the inputs to the estimate function

Description Usage Arguments Value

View source: R/check_inputs.R

Description

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.

Usage

1
2
3
4
5
6
7
8
9
check_inputs(
  model_spec,
  start_values,
  data,
  availabilities,
  draws,
  fixedparam,
  weights
)

Arguments

model_spec

The specified Model

start_values

Named vector of proposed start values for the model

data

the dataset on which to estimate

availabilities

The availabilities for the alternatives in the model specification

draws

The matrix of random draws

fixedparam

Named vector of parameters to be fixed

weights

The weights vector

Value

Nothing


mixl documentation built on Dec. 11, 2021, 9:07 a.m.