testFitmodel: Test a fitmodel

View source: R/fitclasses.r

testFitmodelR Documentation

Test a fitmodel

Description

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.

Usage

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

fitmodel


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