print.imptree {imptree}R Documentation

Classification with Imprecise Probabilities

Description

Printing the imptree object to console

Usage

## 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

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 ';'


[Package imptree version 0.5.1 Index]