Description Usage Arguments Author(s) References See Also Examples
Function to define deviance of a Hossfeld function for use with optim to generate a Hossfeld growth object.
1 | 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.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.