predict.LSBP_ECM: Predict method for the LSBP

Description Usage Arguments Details

Description

Predict method for the LSBP estimated using the ECM algorithm.

Usage

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

Arguments

object

An object of class LSBP_EM.

type

String indicating the type of prediction: 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 MAP, and using the observations contained in the newdata data frame.


blindedmanuscript/LSBP documentation built on May 13, 2019, 8:23 a.m.