pmml (version 1.5.5)

pmml.multinom: Generate PMML for multinom objects

Description

Generate the PMML representation for a multinom object from package nnet.

Usage

# S3 method for multinom
pmml(model, model.name="multinom_Model", app.name="Rattle/PMML",
     description="Multinomial Logistic Model", copyright = NULL,
     transforms = NULL, unknownValue=NULL, ...)

Arguments

model

a multinom 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.

further arguments passed to or from other methods.

Details

This function outputs the multinomial logistic model in the PMML RegressionModel format. It implements the use of numerical, categorical and multiplicative terms involving both numerical and categorical variables.

References

R project CRAN package: nnet: Feed-forward Neural Networks and Multinomial Log-Linear Models https://CRAN.R-project.org/package=nnet