mifem {DAAG} | R Documentation |
The mifem
data frame has 1295 rows and 10 columns.
mifem
This data frame contains the following columns:
live
,
dead
y
, 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/monicaindex.html
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)