predictHeight: Predicting tree height

View source: R/predictHeight.R

predictHeightR Documentation

Predicting tree height

Description

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.

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.

Value

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

Author(s)

Maxime REJOU-MECHAIN, Ariane TANGUY, Arthur PERE

See Also

minpack.lm::nlsLM()


BIOMASS documentation built on Sept. 29, 2023, 5:09 p.m.