powered by
Generate the PMML representation for an lm object from the package stats.
# S3 method for lm pmml(model, model_name = "lm_Model", app_name = "SoftwareAG PMML Generator", description = "Linear Regression Model", copyright = NULL, transforms = NULL, missing_value_replacement = NULL, weights = NULL, ...)
An lm object.
A name to be given to the PMML model.
The name of the application that generated the PMML.
A descriptive text for the Header element of the PMML.
The copyright notice for the model.
Data transformations.
Value to be used as the 'missingValueReplacement' attribute for all MiningFields.
The weights used for building the model.
Further arguments passed to or from other methods.
PMML representation of the lm object.
lm
The resulting PMML representation will not encode interaction terms. Currently, only numeric regression is supported.
R project: Fitting Linear Models
# NOT RUN { fit <- lm(Sepal.Length ~ ., data = iris) fit_pmml <- pmml(fit) # }
Run the code above in your browser using DataLab