kyphosis: Data on Children who have had Corrective Spinal Surgery

Description Usage Format Source Examples

Description

From rpart:
The kyphosis data frame has 81 rows and 4 columns. representing data on children who have had corrective spinal surgery.

Usage

1

Format

This data frame contains the following columns:

Kyphosis

a factor with levels absent present indicating if a kyphosis (a type of deformation) was present after the operation.

Age

in months

Number

the number of vertebrae involved

Start

the number of the first (topmost) vertebra operated on.

Source

John M. Chambers and Trevor J. Hastie eds. (1992) Statistical Models in S, Wadsworth and Brooks/Cole, Pacific Grove, CA 1992.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#from the rpart examples:
fit <- itree(Kyphosis ~ Age + Number + Start, data=kyphosis)
fit2 <- itree(Kyphosis ~ Age + Number + Start, data=kyphosis,
              parms=list(prior=c(.65,.35), split='information'))
fit3 <- itree(Kyphosis ~ Age + Number + Start, data=kyphosis,
              control=itree.control(cp=.05))
par(mfrow=c(1,2))
plot(fit)
text(fit, use.n=TRUE)
plot(fit2)
text(fit2, use.n=TRUE)

Example output

itree is based on the code of rpart.
Bug reports should be directed to this package's maintainer, not rparts'.

itree documentation built on May 29, 2017, 9:09 p.m.