Sentry Page Protection
Coding Project II (2 hours)
Introduction
Case-control study is an observational study design that is commonly found in the field of epidemiology.
It is often used to identify factors that may contribute to a medical condition by comparing subjects who have that condition/disease (the "cases") with patients who do not have the condition/disease but are otherwise similar (the "controls").
For more information, please visit here.
Background
The BCStudy data set contains a list of subjects participating in a case-control breast cancer study. The data set has the following variables:
Task I: Reading in the data
Introduction
Case-control study is an observational study design that is commonly found in the field of epidemiology.
It is often used to identify factors that may contribute to a medical condition by comparing subjects who have that condition/disease (the "cases") with patients who do not have the condition/disease but are otherwise similar (the "controls").
For more information, please visit here.
Background
The BCStudy data set contains a list of subjects participating in a case-control breast cancer study. The data set has the following variables:
- MID:
The index that identifies each subject - GENDER:
Gender of each subject. Since this is a breast cancer study, all participants are female - AGE:
Age of each subject where study started - INCOME:
Income level of each subject - WATERSOURCE:
The source of water in subjects’ geographic area - TERMDATE:
Date of study termination - BCANCER:
Whether the subject ever has breast cancer (0 = No, 1 = Yes)
Task I: Reading in the data
bcstudy.sas7bdat |
Alternatively, download and copy the code from the text file below and run it on SAS Studio.
creation_-_bcstudy.txt |
Task II: Create Sub- Data Sets
Create two data sets from the BCStudy data set:
Create two data sets from the BCStudy data set:
- CASE: the data set that contains the participants that have breast cancer
- CONTROL: the data set that contains the participants who don’t have breast cancer