profile: profile

Description Usage Arguments Examples

Description

Profiles biodyn

Usage

1
2
3
4
5
6
7
## S4 method for signature 'biodyn'
profile(fitted, which, index = "missing",
  range = seq(0.5, 1.5, length.out = 21), fn = function(x)
  cbind(model.frame(params(x)), ll = model.frame(x@ll), model.frame(refpts(x))[,
  -4], stock = c(stock(x)[, ac(range(x)["maxyear"])]%/%bmsy(x)), harvest =
  c(harvest(x)[, ac(range(x)["maxyear"])]%/%fmsy(x))), run = TRUE,
  comp = FALSE, ...)

Arguments

fitted

an object of class biodyn

which

parameters to fix

index

an FLQuant, FLQuants or data.frame object with CPUE indices

range

relative values to fix over

fn

returned values

run

logical, run the profile if TRUE, if FALSE set control slot and return original object

Examples

1
2
3
4
5
6
## Not run: 
library(aspic)
library(biodyn)
data(asp)

## End(Not run)

laurieKell/biodyn documentation built on May 20, 2019, 7:58 p.m.