Extend a user-specified model to include random varibles
Extend a user-specified model to include random varibles
ExpandRandomAsLVModel(dynrModel)
Arguments
dynrModel: a dynrModel object prepared with recipe functions prep.formulaDynamics, prep.measurement, prep.noise, prep.initial, dynr.data.
Returns
an object of dynrModel that is the expanede model.
Details
A dynrModel is a collection of recipes. The recipes are constructed with the functions unctions prep.formulaDynamics, prep.measurement, prep.noise, prep.initial. Additionally, data must be prepared with dynr.data and added to the model.
Examples
# model <- dynr.model(dynamics=dynm, measurement=meas, noise=mdcov,# initial=initial, data=data, outfile="osc.cpp")# extended_model <- ExpandRandomAsLVModel(model)# For full demo examples, see:# demo(OscWithRand, package="dynr")# demo(VDPwithRand, package="dynr")