predict.lrptf: Evaluates linear regression based PTF

View source: R/predict.lrptf.R

predict.lrptfR Documentation

Evaluates linear regression based PTF

Description

Evaluates linear regression based PTF on new data.

Usage

predict.lrptf(lrptf, newdata, na.action = na.pass, ensemble = FALSE)

Arguments

lrptf

linear regression based PTF. Any of PTF04, PTF05, PTF06, PTF07, PTF12, PTF13, PTF14, PTF15.

newdata

data frame containing the values at which the PTF has to be evaluated. The predictors referred to in lrptf must be present by name in newdata. To get the correct names, follow example: data(ptf.data).

na.action

how to handle missing values. Default is na.pass

ensemble

logical. If TRUE, an ensemble of PTFs are evaluated. If FALSE, the median model is used.

Value

a vector of length nrow(newdata).

Note

This function should preferably be executed through predict.ptf.

Author(s)

M. Weynants

See Also

predict.ptf

Examples

data(ptf.data)
data(PTF05)
THS_psd_ts_oc_bd <- predict.lrptf(PTF05,ptf.data)
data(PTF06)
THS_psd_ts_bd_ph <- predict.lrptf(PTF06,ptf.data)
plot(THS_psd_ts_oc_bd,THS_psd_ts_bd_ph)
abline(0,1,col="grey")

melwey/euptf documentation built on Sept. 17, 2022, 3:35 a.m.