pmmlparty: Generate the PMML representation for a party object from...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/pmmlParty.R

Description

Generate the PMML representation for a party object from package party and partykit

Usage

1
2
3
4
pmmlparty(model, formula, data = data, model.name = "CHAID_Model",
  app.name = "PMML", description = "CHAID Decision Tree Model",
  copyright = NULL, transforms = NULL, unknownValue = NULL,
  dataset = NULL, ...)

Arguments

model

an object of class party

formula

an object of class formula

data

dataset used for training the model

Details

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).

Value

An object of class pmml

Author(s)

Seheon Kim

See Also

pmml.rpart pmml.randomForest

Examples

 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

tpgjs66/pmmlParty documentation built on Nov. 1, 2021, 5:40 a.m.