Predict: Model Predictions

Description Usage Arguments Details Value Examples

View source: R/Methods.R

Description

A function for predictions from the results of various model fitting functions.

Usage

1
Predict(object, ...)

Arguments

object

a model object for which prediction is desired.

...

additional arguments affecting the predictions produced.

Details

A somewhat improved version of predict for models fitted with objects of class StatModel-class.

Value

Should return a vector of the same type as the response variable specified for fitting object.

Examples

1
2
3
df <- data.frame(x = runif(10), y = rnorm(10))
mf <- dpp(linearModel, y ~ x, data = df)
Predict(fit(linearModel, mf))

modeltools documentation built on March 13, 2020, 1:53 a.m.