The function predicts height from diameter based on a fitted model.
Arguments
- D
Vector of diameter (in cm).
- model
A height-diameter model output by the function
modelHD()
- err
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 (seeAGBmonteCarlo()
), otherwise it should be let asFALSE
, the default case.- plot
(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.
Details
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.