hd.fit: hd.fit

View source: R/hd_fit.r

hd.fitR Documentation

hd.fit

Description

Fit height-diameter models for each level in a dataset. This is a wrapper for fit.weib.models.

Usage

hd.fit(htdata, level, weib.only = FALSE, thresh = 20, forest.type = TRUE)

Arguments

htdata

Dataframe containing height measurements.

level

Level to fit height-diameter model. One of "Plot", "Cluster", "BioR" and "Continent".

weib.only

Logical. Should the search for the best model be constrained to Weibull models. If TRUE, log-log models are only selected when neither Weibull models converge. Default is FALSE.

thresh

thresh argument to be passed to /codefit.weib.models

forest.type

Logical. If true (default), level is constrained to be within a particular forest type/

Value

Dataframe with estimated parameters, number of height measurments used to fit the models and the error at estimating AGB compared to AGB estimates using observed heights (in units of Mg per tree). Parameters of the 'best' model (i.e. lowest AGB prediction error) are also given.

Author(s)

Martin Sullivan


ForestPlots/BiomasaFP documentation built on April 28, 2023, 8:26 a.m.