pmatage: Calculate proportion mature population from rdat. Either...

View source: R/pmatage.r

pmatageR Documentation

Calculate proportion mature population from rdat. Either proportion female-at-age (for gonochoristic) or proportion combined proportion male and female maturity at age (for protogynous)

Description

Calculate proportion mature population from rdat. Either proportion female-at-age (for gonochoristic) or proportion combined proportion male and female maturity at age (for protogynous)

Usage

pmatage(a.series, Mat_age1_max = 0.49, herm = "gonochoristic", age = NULL)

Arguments

a.series

life history-at-age data with naming conventions used in BAM rdat$a.series data frames. Expects column "age", "mat.female", prop.female and looks for columns "mat.male".

Mat_age1_max

Limit maximum value of proportion mature of first age class (usually age-0 or age-1). Models sometimes fail when maturity of first age class is too high (e.g. >0.5)

herm

Is the species hermaphroditic? If "gonochoristic", use female maturity. If "protogynous", use a function of male and female maturity.

age

Vector of ages to include

Author(s)

Nikolai Klibansky

Examples

## Not run: 
# Identify proportion mature-at-age
pmat <- pmatage(rdat_RedPorgy$a.series)
plot(names(pmat),pmat)

## End(Not run)

nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.