predict.sapwood_fit: Prediction for sapwood rings

View source: R/sapwood_utils.R

predict.sapwood_fitR Documentation

Prediction for sapwood rings

Description

Obtain predictions for a model of type 'sapwood_fit', including prediction and confidence intervals. Optionally, one can predict how many sapwood rings were in a sample that contains some remaining rings but not all.

Usage

## S3 method for class 'sapwood_fit'
predict(object, newdata = NULL, confidence = 0.95)

Arguments

object

an object of class "sapwood_fit", a result from a call to sapwood_fit_l, sapwood_fit_pl or sapwood_fit_plw.

newdata

an optional data frame/tibble/vector in which to look for variables with which to predict. If omitted, the fitted values are used. If a column remaining is in the newdata tibble/data frame, it will be treated as remaining sapwood rings and the prediction interval will be based on that

confidence

Confidence level in prediction (1-alpha). Defaults to 0.95.


karirogg/ScotsPine documentation built on Nov. 22, 2022, 5:55 a.m.