R Dataset / Package DAAG / mifem
On this R-data statistics page, you will find information about the mifem data set which pertains to Mortality Outcomes for Females Suffering Myocardial Infarction. The mifem data set is found in the DAAG R package. You can load the mifem data set in R by issuing the following command at the console data("mifem"). This will load the data into a variable called mifem. If R says the mifem data set is not found, you can try installing the package by issuing this command install.packages("DAAG") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the mifem R data set. The size of this file is about 53,855 bytes.
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
Format
This data frame contains the following columns:
- outcome
-
mortality outcome, a factor with levels
live
,dead
- age
-
age at onset
- yronset
-
year of onset
- premi
-
previous myocardial infarction event, a factor with levels
y
,n
,nk
not known - smstat
-
smoking status, a factor with levels
c
current,x
ex-smoker,n
non-smoker,nk
not known - diabetes
-
a factor with levels
y
,n
,nk
not known - highbp
-
high blood pressure, a factor with levels
y
,n
,nk
not known - hichol
-
high cholesterol, a factor with levels
y
,n
nk
not known - angina
-
a factor with levels
y
,n
,nk
not known - stroke
-
a factor with levels
y
,n
,nk
not known
Source
Newcastle (Australia) centre of the Monica project; see the web site http://www.ktl.fi/monica
Examples
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)
Dataset imported from https://www.r-project.org.