| predict.LSBP_ECM | R Documentation |
Predict method for a LSBP model, estimated using the LSBP_ECM function.
## S3 method for class 'LSBP_ECM' predict(object, type = "mean", newdata = NULL, threshold = NULL, ...)
object |
An object of class |
type |
String indicating the type of prediction. The available options are: |
newdata |
A new data frame containing the same variables declared in |
threshold |
Only needed if |
... |
Further arguments passed to or from other methods. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.