| monica {DAAG} | R Documentation |
The monica data frame has 6357 rows and 12 columns. Note
that mifem is the female subset of this data frame.
monica
This data frame contains the following columns:
live,
deady, n, nk not known c
current, x ex-smoker, n non-smoker, nk not knowny, n, nk not
knowny, n, nk not known y, n nk not knowny,
n, nk not knowny, n, nk not knownNewcastle (Australia) centre of the Monica project; see the web site http://www.ktl.fi
print("CART - Example 10.7")
summary(monica)
pause()
require(rpart)
monica.rpart <- rpart(outcome ~ ., data = monica, cp = 0.0025)
plotcp(monica.rpart)
printcp(monica.rpart)
pause()
monicab.rpart <- prune(monica.rpart, cp=0.006)
print(monicab.rpart)