powered by
Generate the PMML representation for a lm object from package stats.
# S3 method for 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, …)
a lm object.
a name to be given to the model in the PMML code.
the name of the application that generated the PMML code.
a descriptive text for the Header element of the PMML code.
the copyright notice for the model.
data transformations represented in PMML via pmmlTransformations.
value to be used as the 'missingValueReplacement' attribute for all MiningFields.
the orginal training dataset, if available.
the weights used for building the model.
further arguments passed to or from other methods.
Note that the resulting PMML representation will not encode interaction terms. Currently, only numeric regression is supported.
R project: Fitting Linear Models http://stat.ethz.ch/R-manual/R-devel/library/stats/html/lm.html
# NOT RUN { fit <- lm(Sepal.Length ~ ., data=iris) pmml(fit) rm(fit) # }
Run the code above in your browser using DataLab