biodyn-xval: xval

xval,biodyn,ANY-methodR Documentation

xval

Description

Performs a cross-validation uisng a hindcast

Usage

## S4 method for signature 'biodyn,ANY'
xval(
  object,
  index,
  minyear = range(object)["maxyear"] - 4,
  maxyear = range(object)["maxyear"]
)

Arguments

object

an object of class biodyn

index

an FLQuant or FLQuants with index of relative stock abundance

minyear

last year to fit data to

maxyear

last year to project to, by default is the last year in the catch

Details

Returns a data.frame with index, year, obs and hat

Examples

## Not run: 
 data(bd)  

## End(Not run)

laurieKell/mpb documentation built on Sept. 9, 2023, 9:47 p.m.