cohortSim: Simulation of a cohort

Description Usage Arguments Details Value Examples

View source: R/cohortSim.R

Description

cohortSim simulates a single cohort

Usage

1
cohortSim(params, t_incr = 1)

Arguments

params

List of parameters to use in function

t_incr

Value to use a time increment (in years). Defaults to 1.

Details

params list should contain the following parameters:

Value

A list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(tilapia)
res <- cohortSim(tilapia, t_incr=.1)
plot(pcap ~ Lt, res, t="l")
plot(Lt ~ t, res, t="l")
plot(Wt ~ t, res, t="l")

plot(Bt ~ t, res, t="l")
lines(SBt ~ t, res, col=2)

plot(Bt ~ Lt, res, t="l")
lines(SBt ~ Lt, res, col=2)

plot(Yt ~ t, res, t="l")

plot(Nt ~ t, res, t="l", log="y")
lines(Nt.noF ~ t, res, col=2, lty=2)

marchtaylor/fishdynr documentation built on May 21, 2019, 11:27 a.m.