Description Usage Arguments Details Value Author(s)
analyzeRq2(brfss)
Performs analyses for research question #2,
Is there a relationship between depression and chronic illness?
1 | analyzeRq2(brfss)
|
brfss |
Data frame of preprocessed 2013 Behavioral Risk Factor Surveillance System (BRFSS) telephone survey. |
This function extracts frequency and proportion data, renders frequency and proportion plots, conducts tests of marginal independence, and calculates odds ratios.
analysis List containing frequency and proportion data, plots, and statistical tests. The variables are as follows:
r2Frequencies of depression and chronic illness diagnoses
freqFrequencies of depression and chronic illness diagnoses in table format
propProportions of depression and chronic illness diagnoses in table format
freqFrequencies of depression and chronic illness diagnoses in data frame format
(prop)Proportions of depression and chronic illness diagnoses in data frame format
freqDepression and chronic illness frequencies bar plot
propDepression and chronic illness proportions bar plot
X2Chisq test of marginal association
assocThe strength of the association
oddsThe odds ratios
John James, jjames@datasciencesalon.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.