predict.LSBP_ECM: Predict method for the LSBP

View source: R/prediction.R

predict.LSBP_ECMR Documentation

Predict method for the LSBP

Description

Predict method for a LSBP model, estimated using the LSBP_ECM function.

Usage

## S3 method for class 'LSBP_ECM'
predict(object, type = "mean", newdata = NULL, threshold = NULL, ...)

Arguments

object

An object of class LSBP_ECM.

type

String indicating the type of prediction. The available options are: type="mean", type="variance", or type="cdf". See "Details".

newdata

A new data frame containing the same variables declared in Formula. If missing, the dataset provided for estimation is used.

threshold

Only needed if type="cdf" is selected. See "Details".

...

Further arguments passed to or from other methods.

Details

The method predict.LSBP_ECM produces predicted values, obtained by evaluating the conditional mean (if type="mean"), the conditional variance (if type="variance") or the conditional cumulative distribution function (if type="cdf") at a given threshold, after plugging-in the maximum a posteriori, and using the observations contained in the newdata data frame.


tommasorigon/LSBP documentation built on Feb. 25, 2023, 2:47 a.m.