Learn R Programming

DAAG (version 1.17)

mifem: Mortality Outcomes for Females Suffering Myocardial Infarction

Description

The mifem data frame has 1295 rows and 10 columns. This is the female subset of the 'monica' data frame

Usage

mifem

Arguments

source

Newcastle (Australia) centre of the Monica project; see the web site http://www.ktl.fi/monica

Examples

Run this code
print("CART - Example 10.7")
summary(mifem)
pause()

require(rpart)
mifem.rpart <- rpart(outcome ~ ., data = mifem, cp = 0.0025)
plotcp(mifem.rpart)
printcp(mifem.rpart)
pause()

mifemb.rpart <- prune(mifem.rpart, cp=0.006)
print(mifemb.rpart)

Run the code above in your browser using DataLab