Learn R Programming

FBMS (version 1.3)

fitted.fbms_predict: Access Fitted Values

Description

Extracts the mean predictions from an FBMS prediction object (alias for mean).

Usage

fitted.fbms_predict(object, ...)

Value

Vector of mean predictions.

Arguments

object

Object of class "fbms_predict".

...

Additional arguments (ignored).

Examples

Run this code
# \donttest{
data(exoplanet)
model <- fbms(semimajoraxis ~ ., data = exoplanet)
pred <- predict(model, exoplanet[51:60, -1])
fitted(pred)
# }

Run the code above in your browser using DataLab