summary.DStree: Summarize a Fitted DStree Object

Description Usage Arguments Details See Also Examples

View source: R/summary.DStree.R

Description

Returns a detailed listing of a fitted DStree object.

Usage

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

Arguments

object

fitted model object of class "DStree". This is assumed to be the result of some function that produces an object with the same named components as that returned by the DStree 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

The function prints the call, the table shown by printcp, the variable importance (summing to 100) and details for each node.

See Also

summary, DStree.object, printcp.

Examples

1
2
3
data(UnempDur)
tree <- DStree(spell~ui+age+tenure+logwage,status="censor1",data=UnempDur)
summary(tree)

DStree documentation built on May 2, 2019, 3:37 p.m.