predict.speedlm: Predict method for a speedlm object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
## 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

1
2
3
4
5
6
set.seed(10)
x <- round( matrix(rnorm(20*3),20,3),digits=3)
colnames(x) <-c("y","s1","s2")
da <- as.data.frame(x)
mod <- speedlm(y~s1+s2, data=da, fitted=TRUE)
predict(mod)


Search within the speedglm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.