Learn R Programming

smoothic (version 1.2.0)

predict.smoothic: Predict smoothic

Description

predict method class “smoothic

Usage

# S3 method for smoothic
predict(object, newdata, ...)

Value

a matrix containing the predicted values for the location mu and scale s

Arguments

object

an object of class “smoothic” which is the result of a call to smoothic.

newdata

new data object

...

further arguments passed to or from other methods.

Author

Meadhbh O'Neill

Examples

Run this code
# Sniffer Data --------------------
# MPR Model ----
results <- smoothic(
  formula = y ~ .,
  data = sniffer,
  family = "normal",
  model = "mpr"
)
predict(results)

Run the code above in your browser using DataLab