View source: R/IPMpack-Classes_and_Methods.R
wrapHossfeld | R Documentation |
Function to define deviance of a Hossfeld function for use with optim to generate a Hossfeld growth object.
wrapHossfeld(par, dataf)
par |
vector of length three. |
dataf |
dataframe with columns size and incr. |
C. Jessica E. Metcalf, Sean M. McMahon, Roberto Salguero-Gomez, Eelke Jongejans & Cory Merow.
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.
Hossfeld
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.