predict {FLCore} | R Documentation

## Method predict

### Description

predict returns predicted values according to the parameter values and model formula in an `FLModel-class` 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

    # 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)))

[Package FLCore version 2.2 Index]