growthCum: Models growth allowing for cumulative bin estimation.

Description Usage Arguments Value Author(s) See Also Examples

Description

Generic function to predict the cdf (cummulative density function) of continuous (e.g. size) stage at t+1 given stage at t and a growth object.

Usage

1
growthCum(size, sizeNext, cov, growthObj)

Arguments

size

vector of current sizes.

sizeNext

vector of sizes in the next time step.

cov

covariate level in this time step (numeric of length 1).

growthObj

a growth object.

Value

a vector of length sizeNext giving the cdf (cummulative density function) of each value of sizeNext.

Author(s)

C. Jessica E. Metcalf, Sean M. McMahon, Roberto Salguero-Gomez, Eelke Jongejans & Cory Merow.

See Also

growth

Examples

1
2
3
4
5
6
7
8
9
dff <- generateData()
gr1 <- makeGrowthObj(dff)
sizeRange <- c(1:20)
sizeInit <- 1
growthCum(sizeInit, sizeRange, data.frame(cov=1), gr1)
plot(growthCum(sizeInit, sizeRange, data.frame(cov=1), gr1), type="l", 
	col = "dark gray", xlab = "Continuous (e.g. size) stage at time t+1", 
		ylab = paste("Cummulative growth to a specific size in t+1 from size ", 
			sizeInit, " at time t"))

IPMpack documentation built on May 2, 2019, 2:36 a.m.