Learn R Programming

dynr (version 0.1.8-17)

dynr.model: Create a dynrModel object for parameter estimation (cooking dynr) using dynr.cook

Description

Create a dynrModel object for parameter estimation (cooking dynr) using dynr.cook

Usage

dynr.model(dynamics, measurement, noise, initial, data, ..., outfile)

Arguments

dynamics
a dynrDynamics object prepared with prep.formulaDynamics or prep.matrixDynamics
measurement
a dynrMeasurement object prepared with prep.loadings or prep.measurement
noise
a dynrNoise object prepared with prep.noise
initial
a dynrInitial object prepared with prep.initial
data
a dynrData object made with dynr.data
...
additional arguments specifying other dynrRecipe objects. Argument regimes is for a dynrRegimes object prepared with prep.regimes and argument transform is for a dynrTrans object prepared with prep.tfun.
outfile
a character string of the name of the output C script of model functions to be compiled for parameter estimation.

Examples

Run this code
#rsmod <- dynr.model(dynamics=recDyn, measurement=recMeas, noise=recNoise, 
#    initial=recIni, regimes=recReg, data=dd, outfile="RSLinearDiscrete.c")
#For a full demo example, see:
#demo(RSLinearDiscrete , package="dynr")

Run the code above in your browser using DataLab