Stratified.event.tree {ceg} | R Documentation |
Stratified.event.tree
Description
Constructor method to Stratified.event.tree S4 objects. It accepts different sets for parameters types.
Usage
Stratified.event.tree(x, ...)
## S4 method for signature 'missing'
Stratified.event.tree(x)
## S4 method for signature 'ANY'
Stratified.event.tree(x, ...)
## S4 method for signature 'data.frame'
Stratified.event.tree(x = "data.frame")
## S4 method for signature 'list'
Stratified.event.tree(x = "list")
Arguments
x |
(data.frame) , where data.frame is a well behavioured data set; or |
... |
(not used) |
Value
a Stratified.event.tree S4 object
Note
A Stratified.event.tree may be manualy created (see examles)
A call to Stratified.event.tree( )
with no parameters will return
an error message for missing argument.
A call to Stratified.event.tree(x, ...)
, x not being a data.frame or
a list, will return an error message.
Examples
set <- Stratified.event.tree(artificial.chds)
set.manual <- Stratified.event.tree(list(Variable("age",list(Category("old"),
Category("medium"), Category("new"))),Variable("state", list(Category("solid"),
Category("liquid"), Category("steam"))), Variable("costumer",
list(Category("good"), Category("average"), Category("very bad"),
Category("bad")))))
[Package ceg version 0.1.0 Index]