Learn R Programming

IPMpack (version 1.6)

convertGrowthObjIncrTruncObj: Convert an increment based growth object to a truncated increment based growth object.

Description

Function that takes a growth object fitted with a linear regression with increment as the response variable, and returns the corresponding truncated increment growth object (useful if, for example, shrinkage is not thought to occur)

Usage

convertGrowthObjIncrTruncObj(growthObj)

Arguments

growthObj
the growth object for which the conversion is required

Value

  • a growth object of class truncated increment

Details

Note that fitting a truncated normal cannot be done by fitting a normal distribution and cutting off the tails; truncation redistributes the probability density between the size limits which modifies size transition probabilities.

See Also

makeGrowthObj,makeSurvObj,plotGrowthModelComp, plotSurvModelComp

Examples

Run this code
# Data with size and sizeNext
dff <- generateData()

gr1 <- makeGrowthObj(dff,incr~size)
gr2 <- convertGrowthObjIncrTruncObj(gr1)

Run the code above in your browser using DataLab