pmml.glm {pmml}R Documentation

Generate PMML for glm objects

Description

Generate the PMML representation for a glm object from package stats.

Usage

## S3 method for class 'glm'
pmml(model, model.name="General_Regression_Model", app.name="Rattle/PMML",
     description="Generalized Linear Regression Model", copyright=NULL,
     transforms=NULL, unknownValue=NULL, weights=NULL, ...)

Arguments

model

a glm object.

model.name

a name to be given to the model in the PMML code.

app.name

the name of the application that generated the PMML code.

description

a descriptive text for the Header element of the PMML code.

copyright

the copyright notice for the model.

transforms

data transformations represented in PMML via package pmmlTransformations.

unknownValue

value to be used as the 'missingValueReplacement' attribute for all MiningFields.

weights

the weights used for building the model.

...

further arguments passed to or from other methods.

Details

The function exports the glm model in the PMML GeneralRegressionModel format.

Author(s)

Zementis Inc. info@zementis.com

References

R project: Fitting Generalized Linear Models
http://stat.ethz.ch/R-manual/R-devel/library/stats/html/glm.html


[Package pmml version 1.4.2 Index]