summary.causalTree: Summarize a Fitted Rpart Object

Description Usage Arguments Details See Also Examples

Description

Returns a detailed listing of a fitted causalTree object.

Usage

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

Arguments

object

fitted model object of class "causalTree". This is assumed to be the result of some function that produces an object with the same named components as that returned by the causalTree 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 "causalTree". It can be invoked by calling summary for an object of the appropriate class, or directly by calling summary.causalTree regardless of the class of the object.

It prints the call, the table shown by printcp, the variable importance (summing to 100) and details for each node (the details depending on the type of tree).

See Also

summary, causalTree.object, printcp.

Examples

1
2
3
4
5
6
## a regression tree
z.auto <- causalTree(Mileage ~ Weight, car.test.frame)
summary(z.auto)

## a classification tree with multiple variables and surrogate splits.
summary(causalTree(Kyphosis ~ Age + Number + Start, data = kyphosis))

swager/causalForest documentation built on May 30, 2019, 9:32 p.m.