R/all_generics.R
, R/FixedEffectsModel.R
, R/MixedEffectsModel.R
predict.Rd
Predict with an allometric model
predict(model, ...)
# S4 method for FixedEffectsModel
predict(model, ..., output_units = NULL)
# S4 method for MixedEffectsModel
predict(model, ..., newdata = NULL, output_units = NULL)
The allometric model used for prediction
Additional arguments passed to the predict_fn
of the input model
Optionally specify the output units of the model as a
string, e.g., "ft^3". The provided string must be compatible with the
units::set_units()
function.
A dataframe containing columns that match the names of the arguments given
to predict_ranef
. The values of this data represents information from a
new group of observations for which predictions are desired (e.g., a new
stand or plot).
A vector of allometric model predictions
predict(brackett_rubra, 10, 50)
#> 11.81889 [ft^3]
predict(brackett_rubra, 10, 50, output_units = "m^3")
#> 0.3346736 [m^3]