Description Usage Arguments Details Value Author(s) See Also Examples
Generate the PMML representation for a party object from package party and partykit
1 2 3 4 |
model |
an object of class party |
formula |
an object of class formula |
data |
dataset used for training the model |
PMML is an XML based language which provides a way for applications to define statistical and data mining models and to share models between PMML compliant applications. More information about PMML and the Data Mining Group can be found at http://www.dmg.org. This package generates PMML for party objects, and is not a part of the PMML package for R. This package is developed for own use (i.e., CHAID).
An object of class pmml
Seheon Kim
1 2 3 4 5 6 7 8 9 10 11 | library("CHAID")
### fit tree to subsample
set.seed(290875)
USvoteS <- USvote[sample(1:nrow(USvote), 1000),]
ctrl <- chaid_control(minsplit = 200, minprob = 0.1)
formula <- vote3 ~.
chaidUS <- chaid(formula = formula, data = USvoteS, control = ctrl)
library("pmmlParty")
pmml <- pmmlparty(chaidUS, formula, USvoteS)
pmml
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.