predict.speedlm: Predict method for a speedlm object

predict.speedlmR Documentation

Predict method for a speedlm object

Description

summary The method is currently under construction but some functionalities are available.

Usage


## S3 method for class 'speedlm'
predict(object, newdata, na.action = na.pass, ...)

Arguments

object

an object of class 'speedlm'.

newdata

An optional data frame with new data or the original data.

na.action

function determining what should be done with missing values in newdata.

...

further optional arguments

Details

If newdata is omitted prediction are based on the data used for the fit only if argument fitted was previously set to TRUE in the speedlm object.

Value

predictor

a vector of predictions.

Author(s)

Tomer Kalimi and Marco Enea

See Also

speedlm

Examples


data(data1)
mod <- speedglm(y~x1+x2+factor(fat1), data=data1, family=Gamma(log), fitted=TRUE)
predict(mod)


speedglm documentation built on May 31, 2023, 7:58 p.m.