pmml.lm: Generate PMML for lm objects

Description Usage Arguments Details Author(s) References Examples

View source: R/pmml.lm.R

Description

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

Usage

1
2
3
4
5
6
## S3 method for class 'lm'
pmml(model, model.name="Linear_Regression_Model", 
      app.name="Rattle/PMML", 
      description="Linear Regression Model", copyright=NULL,
      transforms=NULL, unknownValue=NULL, dataset=NULL, 
      weights=NULL, ...)

Arguments

model

a lm 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 pmmlTransformations.

unknownValue

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

dataset

the orginal training dataset, if available.

weights

the weights used for building the model.

...

further arguments passed to or from other methods.

Details

Note that the resulting PMML representation will not encode interaction terms. Currently, only numeric regression is supported.

Author(s)

[email protected]

References

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

Examples

1
2
3
4
fit <- lm(Sepal.Length ~ ., data=iris)
pmml(fit)

rm(fit)

pmml documentation built on May 29, 2017, 11:35 p.m.

Related to pmml.lm in pmml...