Learn R Programming

DAAG (version 0.37)

mifem: Mortality Outcomes for Females Suffering Myocardial Infarction

Description

The mifem data frame has 1295 rows and 10 columns.

Usage

data(mifem)

Arguments

source

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

Examples

Run this code
data(mifem)

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