Description Usage Arguments Details Value Author(s)
preProcessData
1 | preProcessData(brfss)
|
brfss |
Data frame of 2013 Behavioral Risk Factor Surveillance System (BRFSS) data |
This function preprocesses the BRFSS data for downstream analysis. The 2013 BRFSS data was reduced to ten variables of interest including:
cvdinfr4(Ever told) you had a heart attack, also called a myocardial infarction?
cvdrhd4(Ever told) you had angina or coronary heart disease?
cvdstrk3(Ever told) you had a stroke.
asthma3(Ever told) you had asthma?
chcscncr(Ever told) you had skin cancer?
chcocncr(Ever told) you had any other types of cancer?
chccopd1(Ever told) you have Chronic Obstructive Pulmonary Disease or COPD, emphysema or chronic bronchitis?
havarth3(Ever told) you have some form of arthritis, rheumatoid arthritis, gout, lupus, or fibromyalgia?
chckidny(Ever told) you have kidney disease?
diabete3(Ever told) you have diabetes?
An dichotomous variable was added to indicate whether a respsondent reported one or more chronic illnesses. Variables were renamed, dollar signs were removed and a range variable was added to capture the range of sick days reported in 5 day increments. #'
brfss Data frame containing variables required for downstream analysis
John James, jjames@datasciencesalon.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.