summary.itree: Summarize a Fitted itree Object

Description Usage Arguments Details See Also Examples

View source: R/summary.itree.R

Description

Returns a detailed listing of a fitted itree object. Same code and returned value as rpart but with additional info regarding penalties and any new parameters specific to itree objects.

Usage

1
2
## S3 method for class 'itree'
summary(object, cp=0, digits=getOption("digits"), file, ...)

Arguments

object

fitted model object of class itree. This is assumed to be the result of some function that produces an object with the same named components as that returned by the itree function.

digits

Number of significant digits to be used in the result.

cp

trim nodes with a complexity of less than cp from the listing.

file

write the output to a given file name. (Full listings of a tree are often quite long).

...

arguments to be passed to or from other methods.

Details

This function is a method for the generic function summary for class "itree". It can be invoked by calling summary for an object of the appropriate class, or directly by calling summary.itree regardless of the class of the object.

See Also

summary, itree.object, printcp.

Examples

1
2
3
#rpart's example:
z.auto <- itree(Mileage ~ Weight, car.test.frame)
summary(z.auto)

itree documentation built on May 19, 2017, 7:32 p.m.

Search within the itree package
Search all R packages, documentation and source code