analyzeRq4: analyzeRq4

Description Usage Arguments Details Value Acquire Data Create Marginal and Joint Contingency Tables Plots Statistical Tests Author(s)

Description

analyzeRq4(brfss)Performs analyses for research question #4: Is there a relationship between depression, chronic disease and the use of health care services?

Usage

1
analyzeRq4(brfss)

Arguments

brfss

Data frame of preprocessed 2013 Behavioral Risk Factor Surveillance System (BRFSS) telephone survey.

Details

This function analyzes the effects of depression and chronic illness on the response variable, the number of doctor office visits during the 12 months preceding the survey. This analysis is conducted in the following five sections.

Value

analysis List containing frequency and proportion data, plots, and statistical tests. The variables are as follows:

Data Tables

depressionFreqTblTable of frequencies of depression diagnoses

depressionPropTblTable of proportions of depression diagnoses

chronicFreqTblTable of frequencies of chronic disease diagnoses

chronicPropTblTable of proportions of chronic disease diagnoses

interactionFreqTblTable of frequencies of the interaction between chronic illness and depression diagnoses

interactionPropTblTable of proportions of the interaction between chronic illness and depression diagnoses

Data Frames

depressionDataDepression frequency data in data frame format

chronicDataChronic disease frequency data in data frame format

interactionDataInteraction between depression and chronic illness frequency data in data frame format

Statistics

depressionDescriptive statistics for doctor visits vis-a-vis depression diagnoses

chronicDescriptive statistics for doctor visits vis-a-vis chronic illness diagnoses

interactionDescriptive statistics for doctor visits vis-a-vis the depression / chronic illness interaction variable

allChronicDescriptive statistics for doctor visits vis-a-vis a diagnoses of any chronic illness

Plots

depressionFreqBarThe depression frequency bar plot

depressionPropBarThe depression proportion bar plot

depressionHist1A histogram of the distribution of doctor visits vis-a-vis a diagnosis of depression

depressionHist2A histogram of the distribution of one or more doctor visits reported vis-a-vis a diagnosis of depression

depressionViolinA violin plot of the distribution of doctor visits vis-a-vis a diagnosis of depression

depressionBoxA box plot of the distribution of doctor visits vis-a-vis a diagnosis of depression

chronicFreqBarThe chronic illness diagnosis frequency bar plot

chronicPropBarThe chronic illness diagnosis proportion bar plot

chronicHist1A histogram of the distribution of doctor visits vis-a-vis a diagnosis of chronic illness

chronicHist2A histogram of the distribution of one or more doctor visits reported vis-a-vis a diagnosis of chronic illness

chronicViolinA violin plot of the distribution of doctor visits vis-a-vis a diagnosis of chronic illness

chronicBoxA box plot of the distribution of doctor visits vis-a-vis a diagnosis of chronic illness

allChronicA box plot of the distribution of doctor visits vis-a-vis a diagnosis of of any chronic illness

interactionFreqBarThe depression / chronic illness interaction variable frequency bar plot of sick

interactionPropBarThe depression / chronic illness interaction variable proportion bar plot

interactionHist1A histogram of the distribution of doctor visits vis-a-vis the depression / chronic illness interaction variable

interactionHist2A histogram of the distribution of one or more doctor visits reported vis-a-vis the depression / chronic illness interaction variable

interactionViolinA violin plot of the distribution of doctor visits vis-a-vis the depression / chronic illness interaction variable

interactionBoxA box plot of the distribution of doctor visits vis-a-vis the depression / chronic illness interaction variable

allinteractionA box plot of the distribution of doctor visits vis-a-vis the depression / chronic illness interaction variable

tests

depressionTestThe Wilcoxin ranked-sums test of equal means with and without depression

depressionEffectThe Kolmogorov-Smirnov test of the effect of depression on doctor visits reported

chronicTestThe Wilcoxin ranked-sums test of equal means with and without a diagnosis of chronic illness

chronicEffectThe Kolmogorov-Smirnov test of the effect of chronic illness on doctor visits reported

interactionTestThe Wilcoxin ranked-sums test of equal means vis-a-vis the depression / chronic illness interaction variable

interactionModelThe linear model that relates doctor visits to the values of the interaction variable

pairwiseThe pairwise Kolmogorov-Smirnov test of the effect of depression and chronic illness on doctor visits reported

Acquire Data

This section extracts the number of doctor visits as well as the depression and chronic illnesses indicator variables.

Create Marginal and Joint Contingency Tables

This section renders the tables that illuminate the marginal and joint effects of depression and chronic illness on the number of doctor visits reported. Descriptive statistics of doctor visits are also reported for both depression and chronic illness, as well as their joint effects on the number of doctor visits reported.

Plots

In this section, frequency and proportion bar plots, box plots, violin plots and histograms are rendered to illuminate the distribution of doctor visits vis-a-vis chronic illness and depression diagnoses.

Statistical Tests

In this section, the non-parametric Wilcoxin signed-rank and the the Kolmogorov–Smirnov tests were administered to ascertain the effect of depression and chronic illness on the number of doctor visits reported. The Wilcox test compared the mean number of doctor visits reported for both depression and chronic disease diagnoses for statistically significant differences. The Komogorov-Smirnov tests were conducted pairwise to reveal relative effects of depression and chronic illness on doctor visits reported.

Author(s)

John James, jjames@datasciencesalon.org


DataScienceSalon/chronic documentation built on May 8, 2019, 11:47 a.m.