prediction
Calculate predictions
Description
Calculate the predictions of a parameterization.
Usage
prediction(para, model=NULL, data=NULL)
Required Arguments
- para
-
A vector of parameters.
Optional Arguments
- model
-
An object of class TSmodel which gives the structure of the model to which
para is applied. model$parms should be the same length as para. If model is not
supplied like looks for a globally defined TSmodel object named Shape.
- data
-
An object of class TSdata which gives the data with which the model is
to be evaluated. If data is not
supplied prediction looks for a globally defined TSdata object named Data.
Value
A vector c(of the predictions).
Details
This function is primarily for use in curvature calculations,
which requires that the predictions be calculated as a function of a
vector of parameters. The default usage relies on globally defined variables
Shape and Data to define the model and evaluate it.
See Also
Examples
return to Table of Contents