makeCLT: Cohort Life Table Constructor

View source: R/makeCLT.R

makeCLTR Documentation

Cohort Life Table Constructor

Description

Given age-specific cohort size (n) and fecundity (m), construct a cohort life table of class ‘CLT’.

Usage

makeCLT(n, m)

## S3 method for class 'CLT'
is(x)

lxFun(x, ...)

## Default S3 method:
lxFun(n_x)

## S3 method for class 'CLT'
lxFun(x)

axFun(x, ...)

## Default S3 method:
axFun(n_vec)

## S3 method for class 'CLT'
axFun(x)

dxFun(x, ...)

## Default S3 method:
dxFun(n_vec)

## S3 method for class 'CLT'
dxFun(x)

qxFun(x, ...)

## Default S3 method:
qxFun(a_vec)

## S3 method for class 'CLT'
qxFun(x)

Arguments

n

A vector of cohort-specific sizes/number of individuals. Should include a last cohort with n=0, else the function adds this.

m

A vector of cohort-specific fecundities. Should be of length length(n)-1 or else have NA at n[length(n)]=0.

x

An object of class ‘CLT’.

n_x

A vector containing the number of individuals in each cohort

a_x

A vector containing Annual survival for each cohort

Value

A vector or data.frame of class ‘CLT’ containing one or all of names:

x

Cohort ages/classes

n_x

Number of individuals in each cohort

l_x

Survivorship

a_x

Annual survival

d_x

Number of individuals that die

q_x

Annual mortality

m_x

Fecundity

Author(s)

matthewwolak@gmail.com

Examples

  makeCLT(n = c(10, 5, 3, 2, 0), m = c(0, 1, 3, 2))

matthewwolak/wolakR documentation built on May 10, 2023, 1:27 p.m.