SSallometric | R Documentation |
This function is used for fitting the allometric function to bivaraite data. The function is of the form y = alpha x ^ beta, where traditionally x and y are different dimensions of a sampling unit, such as diameter and volume of a tree.
SSallometric(x, alpha, beta)
x |
predictor variable (e.g. volume) |
alpha |
product parameter |
beta |
exponent parameter |
The function returns a numeric vector of response variables. The vector has two additional attributes: the gradient, which reports the first derivative of the function with respect to the parameters, evaluated at the response value; and the hessian, which reports the matrix of second partial derivatives of the function with respect to the parameters evaluated at the response variable.
Demonstrates construction and usage of self-starting functions using selfStart.
Andrew Robinson <apro@unimelb.edu.au>
Robinson, A.P., and J.D. Hamann. 2010. Forest Analytics with R: an Introduction. Springer.
selfStart
SSallometric(10, 2, 3)
data(sweetgum)
nls(vol.m3 ~ SSallometric(dbh.cm, alpha, beta), data = sweetgum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.