CmmcMod-class: S4 class representing a model for categorical data

Description Details Slots

Description

This class is usually created by a call to make_model.

Details

This class contains a objective, prediction, gradient, and hessian function of the model, a symbolic description of the model similar to the model equations, and some model info, such as parameter names and parameter bounds (upper and lower).

Slots

predict

"function" returning predictet proportion given parameter values.

objective

"function" returning the likelihood given parameter values.

gradient

"function" returning the analytical gradient given parameter values.

hessian

"function" returning the analytical hessian given parameter values.

model_environment

"environment" containing the model equations (likelihood, prediction, gradient, hessian), the parameters, and the data. Is used by all functions in this class.

bounds

"list" of length 4 containing upper and lower bounds of parameters and starting values.

model

"list" of length 2: "parameter" giving the name of the free parameters and "model_list" containing a list of models in which element is a "list" of "expression" corresponding to one item type.

parameters_show

"character" vector given the parameters of the model to be displayed.

model

"list" of restrictions.


singmann/cmmc documentation built on May 29, 2019, 10:09 p.m.