This function simulates a model defined in a fitmodel object and generates observations at each time point. It returns the trajectory with an additions obs column.

rTrajObs(fitmodel, theta, initState, times)

Arguments

fitmodel

a fitmodel object

theta

named numeric vector. Values of the parameters. Names should match fitmodel$thetaNames.

initState

named numeric vector. Initial values of the state variables. Names should match fitmodel$stateNames.

times

the times at which to generate observations

Value

data.frame

See also