predict.ALKmodel {DATRAS}R Documentation

Predict method for ALKmodel objects

Description

Predict method for ALKmodel objects

Usage

  ## S3 method for class 'ALKmodel'
 predict(object, newdata = NULL,
    type = "Nage", mc.cores = 1, ...)

Arguments

object

An object of class 'ALKmodel'

newdata

optionally, a DATRASraw object to predict

type

the type of prediction required. The default is "Nage", which is numbers-at-age for each haul. The other option is "ALK", which gives a list of age-length keys, one for each haul.

mc.cores

use this number of cores (parallel computation via multicore library)

...

unused

Value

A matrix if type equals "Nage", and a list of matrices if type equals "ALK".


[Package DATRAS version 1.0 Index]