predict: Method predict

Description Generic function Methods Author(s) See Also Examples

Description

predict returns predicted values according to the parameter values and model formula in an FLModel object. If no extra input is given, predict will use the input values contained in the relevant slots. If any extra named argument is provided, this is used instead and the correspodning predicted values are returned.

Generic function

predict(object, ...)

Methods

signature(object=FLModel) :

Calculates predicted values according to the fitted model

Author(s)

The FLR Team

See Also

FLComp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# nsher FLSR dataset
data(nsher)

# predict with no extra arguments returns the values
# predicted during model fitting
predict(nsher)

# which can also be extracted from the 'fitted' slot
fitted(nsher)

# a different ssb vector can be provided
predict(nsher, ssb=FLQuant(seq(10, 150, by=5)))

FLCore documentation built on May 2, 2019, 5:46 p.m.