View source: R/predict.lrptf.R
predict.lrptf | R Documentation |
Evaluates linear regression based PTF on new data.
predict.lrptf(lrptf, newdata, na.action = na.pass, ensemble = FALSE)
lrptf |
linear regression based PTF. Any of |
newdata |
data frame containing the values at which the PTF has to be evaluated. The predictors referred to in |
na.action |
how to handle missing values. Default is |
ensemble |
logical. If TRUE, an ensemble of PTFs are evaluated. If FALSE, the median model is used. |
a vector of length nrow(newdata)
.
This function should preferably be executed through predict.ptf
.
M. Weynants
predict.ptf
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.