rTrajObs: Generate an observation trajectory for a fitmodel

View source: R/logLikelihood.r

rTrajObsR Documentation

Generate an observation trajectory for a fitmodel

Description

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.

Usage

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

dTrajObs


sbfnk/fitR documentation built on July 18, 2023, 3:28 p.m.