as.glm: Conversion of a RevoScaleR rxLogit or rxGlm object to a glm Object

Description

Converts objects containing generalized linear model results to a glm object.

Usage

 ## S3 method for class `rxLogit':
as.glm  (x, ...)
 ## S3 method for class `rxGlm':
as.glm  (x, ...)

Arguments

x

object of class rxLogit or rxGlm.

...

additional arguments (currently not used).

Details

This function converts an existing object of class rxLogit or rxGlm to an object of class glm. The underlying structure of the output object will be a subset of that produced by an equivalent call to glm. 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

rxLogit, rxGlm, glm, as.lm, as.kmeans, as.rpart, as.xtabs.

Examples


 ## Not run:

# If the pmml package is installed 
library(pmml)
form <- case ~ age + parity + spontaneous + induced
rxObj <- rxLogit(form, data=infert, reportProgress = 0)
pmml(as.glm(rxObj))
## End(Not run)