Research Overview
The purpose of my research is to examine the relationship between health insurance coverage and overall health outcomes across Texas counties using the 2025 County Health Rankings & Roadmaps analytic dataset.
Research Question:
What is the relationship between the percentage of uninsured adults and the percentage of adults reporting poor or fair health across Texas counties?
Null Hypothesis (H0):
There is no relationship between the percentage of uninsured adults and the percentage of adults reporting poor or fair health across Texas counties.
Alternative Hypothesis (H1):
There is a relationship between the percentage of uninsured adults and the percentage of adults reporting poor or fair health across Texas counties, with a positive relationship expected.
library(lmtest)
## Warning: package 'lmtest' was built under R version 4.6.2
## Loading required package: zoo
##
## Attaching package: 'zoo'
## The following objects are masked from 'package:base':
##
## as.Date, as.Date.numeric
library(car)
## Warning: package 'car' was built under R version 4.6.2
## Loading required package: carData
library(sandwich)
## Warning: package 'sandwich' was built under R version 4.6.2
main_data <- read.csv("analytic_data2025_v3.csv")
texas_data <- subset(main_data, State.Abbreviation == "TX")
texas_data <- subset(texas_data, County.FIPS.Code != "000")
dim(texas_data)
## [1] 254 796
regression_data <- texas_data[, c(
"Poor.or.Fair.Health.raw.value",
"Uninsured.Adults.raw.value",
"Adult.Smoking.raw.value",
"Physical.Inactivity.raw.value"
)]
regression_data[] <- lapply(regression_data, as.numeric)
dim(regression_data)
## [1] 254 4
colSums(is.na(regression_data))
## Poor.or.Fair.Health.raw.value Uninsured.Adults.raw.value
## 0 0
## Adult.Smoking.raw.value Physical.Inactivity.raw.value
## 0 0
my research, I selected poor or fair health as my dependent variable and uninsured adults as my primary independent variable. Adult smoking and physical inactivity were included as additional independent variables in my multiple linear regression analysis.
summary(regression_data)
## Poor.or.Fair.Health.raw.value Uninsured.Adults.raw.value
## Min. :0.1240 Min. :0.03226
## 1st Qu.:0.2050 1st Qu.:0.20192
## Median :0.2280 Median :0.23041
## Mean :0.2355 Mean :0.23303
## 3rd Qu.:0.2605 3rd Qu.:0.26161
## Max. :0.4650 Max. :0.40732
## Adult.Smoking.raw.value Physical.Inactivity.raw.value
## Min. :0.0880 Min. :0.1740
## 1st Qu.:0.1590 1st Qu.:0.2690
## Median :0.1735 Median :0.2945
## Mean :0.1729 Mean :0.2998
## 3rd Qu.:0.1900 3rd Qu.:0.3275
## Max. :0.2770 Max. :0.4730
par(mfrow = c(2, 2))
hist(regression_data$Poor.or.Fair.Health.raw.value,
main = "Poor or Fair Health",
xlab = "Proportion of Adults",
col = "lightblue")
hist(regression_data$Uninsured.Adults.raw.value,
main = "Uninsured Adults",
xlab = "Proportion of Adults",
col = "lightblue")
hist(regression_data$Adult.Smoking.raw.value,
main = "Adult Smoking",
xlab = "Proportion of Adults",
col = "lightblue")
hist(regression_data$Physical.Inactivity.raw.value,
main = "Physical Inactivity",
xlab = "Proportion of Adults",
col = "lightblue")
par(mfrow = c(1, 1))
plot(regression_data$Uninsured.Adults.raw.value,
regression_data$Poor.or.Fair.Health.raw.value,
main = "Uninsured Adults vs. Poor or Fair Health",
xlab = "Proportion of Uninsured Adults",
ylab = "Proportion Reporting Poor or Fair Health",
pch = 19,
col = "steelblue")
abline(lm(Poor.or.Fair.Health.raw.value ~
Uninsured.Adults.raw.value,
data = regression_data),
col = "red", lwd = 2)
Pearson correlation test
cor.test(
regression_data$Uninsured.Adults.raw.value,
regression_data$Poor.or.Fair.Health.raw.value,
method = "pearson"
)
##
## Pearson's product-moment correlation
##
## data: regression_data$Uninsured.Adults.raw.value and regression_data$Poor.or.Fair.Health.raw.value
## t = 13.835, df = 252, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
## 0.5809137 0.7217385
## sample estimates:
## cor
## 0.6570203
My Pearson correlation analysis showed a moderately strong positive relationship between uninsured adults and poor or fair health (r = 0.6570, p < 0.001). Since the p-value was below the significance level of 0.05, I rejected the null hypothesis, supporting my original hypothesis that counties with higher percentages of uninsured adults tend to experience poorer health outcomes.
model <- lm(
Poor.or.Fair.Health.raw.value ~
Uninsured.Adults.raw.value +
Adult.Smoking.raw.value +
Physical.Inactivity.raw.value,
data = regression_data
)
summary(model)
##
## Call:
## lm(formula = Poor.or.Fair.Health.raw.value ~ Uninsured.Adults.raw.value +
## Adult.Smoking.raw.value + Physical.Inactivity.raw.value,
## data = regression_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.034625 -0.004883 -0.000005 0.004159 0.055372
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -0.064917 0.004292 -15.124 <2e-16 ***
## Uninsured.Adults.raw.value 0.024624 0.015490 1.590 0.113
## Adult.Smoking.raw.value -0.024330 0.030491 -0.798 0.426
## Physical.Inactivity.raw.value 0.997175 0.018611 53.579 <2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.009619 on 250 degrees of freedom
## Multiple R-squared: 0.9674, Adjusted R-squared: 0.967
## F-statistic: 2474 on 3 and 250 DF, p-value: < 2.2e-16
my correlation analysis, I conducted a multiple linear regression analysis to determine whether the relationship between uninsured adults and poor or fair health remained statistically significant when accounting for adult smoking and physical inactivity. My regression model produced an R-squared value of 0.9674, accounting for 96.74% of the variation in poor or fair health across Texas counties. Physical inactivity was the only statistically significant independent variable in the model.
plot(model, which = 1)
raintest(model)
##
## Rainbow test
##
## data: model
## Rain = 0.73068, df1 = 127, df2 = 123, p-value = 0.9599
dwtest(model, alternative = "two.sided")
##
## Durbin-Watson test
##
## data: model
## DW = 1.8658, p-value = 0.2803
## alternative hypothesis: true autocorrelation is not 0
plot(model, which = 3)
bptest(model)
##
## studentized Breusch-Pagan test
##
## data: model
## BP = 13.634, df = 3, p-value = 0.003449
plot(model, which = 2)
shapiro.test(residuals(model))
##
## Shapiro-Wilk normality test
##
## data: residuals(model)
## W = 0.91085, p-value = 3.69e-11
vif(model)
## Uninsured.Adults.raw.value Adult.Smoking.raw.value
## 1.751465 1.719119
## Physical.Inactivity.raw.value
## 2.542717
cor(regression_data[, c(
"Uninsured.Adults.raw.value",
"Adult.Smoking.raw.value",
"Physical.Inactivity.raw.value"
)], use = "complete.obs")
## Uninsured.Adults.raw.value
## Uninsured.Adults.raw.value 1.0000000
## Adult.Smoking.raw.value 0.3913166
## Physical.Inactivity.raw.value 0.6537844
## Adult.Smoking.raw.value
## Uninsured.Adults.raw.value 0.3913166
## Adult.Smoking.raw.value 1.0000000
## Physical.Inactivity.raw.value 0.6454930
## Physical.Inactivity.raw.value
## Uninsured.Adults.raw.value 0.6537844
## Adult.Smoking.raw.value 0.6454930
## Physical.Inactivity.raw.value 1.0000000
five assumptions of multiple linear regression, I found that my model reasonably met the assumptions of linearity, independence of errors in the observation order, and no excessive multicollinearity. However, based on the findings of the Breusch-Pagan test (p = 0.003449) and the Shapiro-Wilk test (p = 3.69e-11), my regression model violated the assumptions of homoscedasticity and normality of residuals. To address these violations, I considered mitigation techniques to improve the reliability of my statistical findings.
coeftest(model, vcov. = vcovHC(model, type = "HC3"))
##
## t test of coefficients:
##
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -0.0649172 0.0083755 -7.7509 2.296e-13 ***
## Uninsured.Adults.raw.value 0.0246242 0.0205254 1.1997 0.2314
## Adult.Smoking.raw.value -0.0243297 0.0445200 -0.5465 0.5852
## Physical.Inactivity.raw.value 0.9971745 0.0172529 57.7976 < 2.2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
To address the violation of homoscedasticity, I used HC3 heteroscedasticity-robust standard errors to account for unequal variance within my regression model. After applying this technique, physical inactivity remained the only statistically significant independent variable, while uninsured adults and adult smoking remained statistically insignificant. Although this technique did not eliminate heteroscedasticity, it helped improve the reliability of my statistical inference.
plot(model, which = 4)
cooks_d <- cooks.distance(model)
influential <- which(cooks_d > 4 / nobs(model))
influential
## 2586 2588 2610 2622 2629 2650 2662 2687 2694 2702 2709 2710 2730 2806 2819 2824
## 7 9 31 43 50 71 83 108 115 123 130 131 151 227 240 245
## 2825
## 246
length(influential)
## [1] 17
adjusted_data <- model.frame(model)[-influential, ]
dim(adjusted_data)
## [1] 237 4
adjusted_model <- lm(
Poor.or.Fair.Health.raw.value ~
Uninsured.Adults.raw.value +
Adult.Smoking.raw.value +
Physical.Inactivity.raw.value,
data = adjusted_data
)
summary(adjusted_model)
##
## Call:
## lm(formula = Poor.or.Fair.Health.raw.value ~ Uninsured.Adults.raw.value +
## Adult.Smoking.raw.value + Physical.Inactivity.raw.value,
## data = adjusted_data)
##
## Residuals:
## Min 1Q Median 3Q Max
## -0.0295299 -0.0043674 0.0003021 0.0044331 0.0239578
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -0.063530 0.003542 -17.936 <2e-16 ***
## Uninsured.Adults.raw.value 0.016432 0.012456 1.319 0.188
## Adult.Smoking.raw.value 0.006021 0.023890 0.252 0.801
## Physical.Inactivity.raw.value 0.978740 0.013832 70.758 <2e-16 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 0.006837 on 233 degrees of freedom
## Multiple R-squared: 0.9796, Adjusted R-squared: 0.9793
## F-statistic: 3722 on 3 and 233 DF, p-value: < 2.2e-16
plot(adjusted_model, which = 2)
shapiro.test(residuals(adjusted_model))
##
## Shapiro-Wilk normality test
##
## data: residuals(adjusted_model)
## W = 0.985, p-value = 0.01343
To address the violation of normality of residuals, I used Cook’s Distance to identify 17 potentially influential observations and temporarily removed them to conduct a sensitivity analysis. Although the normality of the residuals improved, the Shapiro-Wilk test resulted in a p-value of 0.01343, indicating that the violation was not completely resolved. For the purpose of my research, I retained the original 254 county-level observations and used robust standard errors while acknowledging the limitations of my regression model.
Texas counties with higher percentages of uninsured adults tend to have higher percentages of adults reporting poor or fair health. However, after conducting a multiple linear regression analysis and applying robust standard errors, uninsured adults was not a statistically significant predictor after accounting for adult smoking and physical inactivity. Physical inactivity remained the only statistically significant independent variable. Although my regression model violated certain statistical assumptions, the mitigation techniques and sensitivity analysis did not change the overall conclusions regarding statistical significance. For the purpose of my research, I retained all 254 Texas county-level observations while acknowledging the limitations of my regression model.