This function performs a series of checks on the fitmodel provided by the user in order to make sure that it will be compatible both with the functions coded during the course and the functions available in the fitR package.

testFitmodel(fitmodel, theta, initState, data = NULL, verbose = TRUE)

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.

data

data frame. Observation times and observed data. The time column must be named "time" and the observation column must be named "obs".

verbose

if TRUE, print details of the test performed to check validity of the arguments

See also