Learn R Programming

DStree (version 1.0)

summary.DStree: Summarize a Fitted DStree Object

Description

Returns a detailed listing of a fitted DStree object.

Usage

"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

Run this code
data(UnempDur)
tree <- DStree(spell~ui+age+tenure+logwage,status="censor1",data=UnempDur)
summary(tree)

Run the code above in your browser using DataLab