as.lm: Conversion of a RevoScaleR rxLinMod object to an lm Object

Description

Converts objects containing linear model results to an lm object.

Usage

 ## S3 method for class `rxLinMod':
as.lm  (x, ...)

Arguments

x

object of class rxLinMod.

...

additional arguments (currently not used).

Details

This function converts an existing object of class rxLinMod an object of class lm. The underlying structure of the output object will be a subset of that produced by an equivalent call to lm. Often, this method can be used to coerce an object for use with the pmml package. RevoScaleR model objects that contain transforms or a transformFunc are not supported.

Value

an object of class lm.

Author(s)

Microsoft Corporation Microsoft Technical Support

See Also

rxLinMod, lm, as.glm, as.kmeans, as.rpart, as.xtabs.

Examples


 ## Not run:

# If the pmml package is installed 
library(pmml)
rxObj <- rxLinMod(Sepal.Length ~ Sepal.Width + Petal.Length, data=iris)
pmml(as.lm(rxObj))
## End(Not run)