R Dataset / Package DAAG / monica

On this R-data statistics page, you will find information about the monica data set which pertains to WHO Monica Data. The monica data set is found in the DAAG R package. You can load the monica data set in R by issuing the following command at the console data("monica"). This will load the data into a variable called monica. If R says the monica 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 monica R data set. The size of this file is about 318,705 bytes.

WHO Monica Data

Description

The monica data frame has 6357 rows and 12 columns. Note that mifem is the female subset of this data frame.

Usage

monica

Format

This data frame contains the following columns:

outcome

mortality outcome, a factor with levels live, dead

age

age at onset

sex

m = male, f = female

hosp

y = hospitalized, n = not hospitalized

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(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)

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-daag-monica.html" width="100%" height="100%" style="border:0px"></iframe>