An S4 class representing the model component of the simulator.
Source:R/model-class.R
Model-class.RdAn object of class Model specifies the statistical model. In particular,
all parameters are specified in addition to a function called simulate
that allows one to draw random samples from this model.
Details
To get parameters stored in a Model object, a shortcut for
my_model@params$my_parameter is my_model$my_parameter.
This class inherits from the Component class.
Slots
namea short name identifier. Must be alphanumeric (though -, _, and / are allowed as long as they are not at the start or end of name.
labela longer, human readable label that can have other characters such as spaces, hyphens, etc.
paramsa list that contains the Model object's parameters
simulatea function that has arguments
nsimand names matching elements withinnames(params). It returns a list of length nsim, where each element of the list represents a random draw from theModelobject.