The function predicts height from diameter based on a fitted model.
predictHeight(D, model, err = FALSE, plot = NULL)
Returns a vector of total tree height (in m).
Vector of diameter (in cm).
A height-diameter model output by the function modelHD()
If TRUE
, An error is taken randomly from a normal distribution with a mean of
zero and a standard deviation equalled to the residual standard error of the model (RSE). Only used
for the Monte Carlo approach (see AGBmonteCarlo()
), otherwise it should be
let as FALSE
, the default case.
(optional) Plot ID, must be either one value, or a vector of the same length as D. This argument is used to build stand-specific HD models.
Maxime REJOU-MECHAIN, Ariane TANGUY, Arthur PERE
In the case where the error is FALSE
and the model is a log-log model, we use the
Baskerville correction, a bias correction factor used to get unbiased backtransformation values.
minpack.lm::nlsLM()