print.imptree: Classification with Imprecise Probabilities

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

Description

Printing the imptree object to console

Usage

1
2
3
## S3 method for class 'imptree'
print(x, digits = getOption("digits"), sep = "\t",
  ...)

Arguments

x

Object of class imptree. See details.

digits

a non-null value for digits specifies the minimum number of significant digits to be printed in values. The default uses getOption("digits"). Non-integer values will be rounded down, and only values greater than or equal to 1 and no greater than 17 are accepted.

sep

Separator between the displayed IPDistribution objects. (Default: '\t')

...

Additional arguments; ignored at the moment

Details

An existence check on the stored C++ object reference is carried out at first. If the reference is not valid the original call for "object" is printed as error.

For a more detailed summary of the tree summary.imptree.

Value

Returns the calling object invisible.

Author(s)

Paul Fink Paul.Fink@stat.uni-muenchen.de

See Also

imptree, summary.imptree

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("carEvaluation")

## create a tree with IDM (s=1) to full size
## carEvaluation, leaving the first 10 observations out
ip <- imptree(acceptance~., data = carEvaluation[-(1:10),], 
  method="IDM", method.param = list(splitmetric = "globalmax", s = 1), 
  control = list(depth = NULL, minbucket = 1))

ip                        ## standard printing; same as 'print(ip)'
print(ip, sep = ";")      ## probability intervals are separated by ';'

imptree documentation built on May 1, 2019, 8:18 p.m.