wrapHossfeld: Fitting Hossfeld growth function.

Description Usage Arguments Author(s) References See Also Examples

Description

Function to define deviance of a Hossfeld function for use with optim to generate a Hossfeld growth object.

Usage

1
wrapHossfeld(par, dataf)

Arguments

par

vector of length three.

dataf

dataframe with columns size and incr.

Author(s)

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

References

Zuidema, Jongejans, Chien, During & Schieving. Integral projection models for trees: a new parameterization method and a validation of model output. Journal of Ecology 98, p345-355.

See Also

Hossfeld

Examples

1
2
3
4
5
6
7
8
9
# Simulate data and create a column for growth increment
dff <- generateData()
dff$incr <- dff$sizeNext - dff$size

# Current sum of squares
wrapHossfeld(c(1, 1, 1), dff)

# Use optim to get best parameters values [not run]
tmp <- optim(c(1, 1, 1), wrapHossfeld, dataf = dff, method = "Nelder-Mead")

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