Skip to contents

The function predicts height from diameter based on a fitted model.

Usage

predictHeight(D, model, err = FALSE, plot = NULL)

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 (see AGBmonteCarlo()), otherwise it should be let as FALSE, 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.

Value

Returns a vector of total tree height (in m).

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.

Author

Maxime REJOU-MECHAIN, Ariane TANGUY, Arthur PERE