Partial and Semi-Partial Correlation Analysis with PRAMS 8 Data

Author

Barboza-Salerno

Published

February 9, 2025

Dataset Description

The Pregnancy Risk Assessment Monitoring System (PRAMS) Phase 8 dataset collects data on maternal behaviors and experiences before, during, and after pregnancy. The sample is drawn from birth certificate records across multiple jurisdictions, covering 81% of U.S. live births. I would provide the link to the data but of course it is now gone due to the censorship happening with our government currently, which has substantial implications for the reproductive health of women and other persons regardless of their pregnancy status.

This analysis uses the data from Kansas. These data were used because I wanted to focus on associations between ACEs, maternal education, parenting stress, and intimate partner violence. Each state administers its own modules, and for some reason Kansas asked these. If you would like to read a summary of the findings from these data, check out this website.

Introduction

Understanding how early-life adversity, maternal education, and stress during pregnancy interact is crucial for maternal and child health research. This analysis examines the relationships between Adverse Childhood Experiences (ACEs), Stress During Pregnancy (STRESS), and Maternal education (Meduc) using partial and semi-partial correlation techniques. The goal is to determine whether maternal education during pregnancy influences stress levels beyond what can be explained by prior adverse experiences (ACEs).

Research Question

  • Does Maternal Education predict Stress During Pregnancy after controlling for Adverse Childhood Experiences (ACEs)?
  • Does dverse Childhood Experiences (ACEs) predict Stress During Pregnancy after controlling for Maternal Education?
  • How does the relationship between ACEs and Stress change when we control for education in both variables (Partial Correlation) vs. when we remove the effect of education only from Stress (Semi-Partial Correlation)?

Data and Variables

Click here for the dataset used in the analysis.

The table below provides an overview of the key variables used in this analysis:

Warning: package 'knitr' was built under R version 4.3.3
PRAMS Phase 8 Variable Descriptions
Variable_Name Label Recodes
NEED_TRAN Access to Basic Needs - Affordable Transportation Material Hardship
NEED_FOOD Basic Needs - Food Insecurity Material Hardship
NEED_SHOUS Basic Needs - Safe Housing Material Hardship
NEED_CHOUS Basic Needs - Consistent Housing Material Hardship
NEED_CROWD Basic Needs - Crowded Housing Material Hardship
NEED_UTIL Basic Needs - Utilities Material Hardship
NEED_PHON Basic Needs - Phone Access Material Hardship
NEED_OTH Basic Needs - Other Unmet Needs Material Hardship
HDP_SAF Partner Threatened Safety Intimate Partner Violence
HDP_ANGR Partner Anger/Threats Intimate Partner Violence
HDP_CTRL Partner Control of Activities Intimate Partner Violence
HDP_SEX Partner Forced Sexual Activity Intimate Partner Violence
STRS_FM3 Close Family Member Hospitalized Social Stressor
STRS_DV3 Divorce or Separation Social Stressor
STRS_MOV Moved to a New Address Social Stressor
STRSHOME Homelessness Social Stressor
STRS_JOB Partner Lost Job Social Stressor
STRS_WRK Lost Job Despite Wanting to Work Social Stressor
STRS_PAY Cut in Work Hours or Pay Social Stressor
STRS_AWY Separated from Partner Due to Deployment/Travel Social Stressor
STRS_ARG Frequent Arguments with Partner Social Stressor
STRS_PG Partner Did Not Want Pregnancy Social Stressor
STRS_BIL Problems Paying Rent/Mortgage Social Stressor
STRS_DRG Close Person Had a Drug or Alcohol Problem Social Stressor
STRS_DH3 Close Person Died Adverse Childhood Experiences
CDHD_DVRC Parent or Guardian Divorced/Separated Adverse Childhood Experiences
CDHD_HOUS Moved Due to Rent/Mortgage Issues Adverse Childhood Experiences
CDHD_FOOD Went Hungry Due to Food Insecurity Adverse Childhood Experiences
CDHD_JAIL Parent or Guardian Involved in Legal System Adverse Childhood Experiences
CDHD_SUBS Parent or Guardian Had Substance Use Issues Adverse Childhood Experiences
CDHD_FSTR Experience in Foster Care Adverse Childhood Experiences
CIG_1TRI Cigarettes Smoked Daily - 1st Trimester Cigarettes Smoked Daily - 1st Trimester
MAT_ED Maternal Years of Education Maternal Education

Explanation of Correlation Types

Correlation

Definition: Measures the direct (linear) relationship between two variables without controlling for other influences.

  • What does it ask? “How strongly are two variables associated?” “When one variable increases, does the other also increase (positive correlation), decrease (negative correlation), or are the variables not linearly related?”

  • Why does this matter?

  1. Identifies basic associations: Helps determine whether two variables have a relationship worth further investigation.

  2. Guides hypothesis development: Provides an initial understanding before applying more complex statistical techniques like partial correlation or regression.

  3. Does not imply causation: A strong correlation does not mean one variable causes changes in the other; it simply indicates they move together.

  • Example Interpretation: If ACEs and Stress During Pregnancy have a positive correlation, it suggests that individuals with higher adverse childhood experiences tend to experience more stress during pregnancy. However, other factors (e.g., education, income) could be influencing this relationship.

  • Positive values indicate a direct relationship (when one increases, the other also increases).

  • Negative values indicate an inverse relationship (when one increases, the other decreases).

  • Values closer to 0 suggest a weak or no linear association between the variables. This DOES NOT mean that no relationship exists.

Partial Correlation

Definition: Measures the direct relationship between two variables while controlling for the effect of a third variable.

  • What does it ask? “What is the association between Maternal Education and Stress During Pregnancy, after removing the effect of ACEs from both?”

  • Why does this matter? If the correlation remains significant, this suggests that education independently contributes to stress beyond what can be explained by early-life adversity.

Semi-Partial (Part) Correlation

Definition: Measures the relationship between two variables while controlling for a third variable’s effect on just one of them.

  • What does it ask? “What is the association between Maternal Education and Stress During Pregnancy, after removing the effect of ACEs only from Stress During Pregnancy?”

  • Why does this matter? If the relationship weakens, it suggests that ACEs account for some of the variance in how education affects stress. Another way to think about this is that ACEs partly explain how education effects stress. And, yet another ‘connect-the-dots’ moment is that tf the relationship weakens, then ACEs mediate some of the observed effects of education on stress

Data Import and Preprocessing

library(tidyverse)
library(ppcor) # For partial and semi-partial correlation

# Load dataset
df <- read.csv("data/KSPRAMS_SUB_COR.csv")

# Select relevant columns
data_subset <- df %>% 
  dplyr::select(ACEs, STRESS, Meduc) %>% 
  na.omit()

# Check summary statistics
summary(data_subset)
      ACEs           STRESS           Meduc      
 Min.   :0.000   Min.   : 0.000   Min.   :1.000  
 1st Qu.:0.000   1st Qu.: 0.000   1st Qu.:3.000  
 Median :0.000   Median : 1.000   Median :4.000  
 Mean   :1.043   Mean   : 1.892   Mean   :3.916  
 3rd Qu.:2.000   3rd Qu.: 3.000   3rd Qu.:5.000  
 Max.   :6.000   Max.   :14.000   Max.   :5.000  
Warning

Please pay particular attention to the handling of missing data in R. There are many ways to handle missing data with significant implications for your analysis. For some good guides to handling missing data in R see How does R handle missing data from UCLA and Missing data tutorial in R from Princeton University.

# Compute Pearson correlation matrix
cor_matrix <- cor(data_subset, method = "pearson")

# Print correlation matrix
print(cor_matrix)
             ACEs     STRESS      Meduc
ACEs    1.0000000  0.3411429 -0.2399357
STRESS  0.3411429  1.0000000 -0.2105974
Meduc  -0.2399357 -0.2105974  1.0000000

Computed Correlation Matrix

The table below presents Pearson correlation coefficients between ACEs (Adverse Childhood Experiences), STRESS (Stress During Pregnancy), and Meduc (Maternal Education Level). Each correlation value ranges from -1 to 1.

Below is the Pearson correlation matrix for the selected variables:

Variable ACEs STRESS Meduc
ACEs 1.00 0.341 -0.239
STRESS 0.341 1.00 -0.210
Meduc -0.239 -0.210 1.00

Interpretation of Results:

  1. ACEs and STRESS ( r = 0.341 ):
  • There is a moderate positive correlation between adverse childhood experiences and stress during pregnancy.
  • This suggests that individuals who report more childhood adversity tend to experience higher stress levels during pregnancy.
  1. ACEs and Meduc ( r = -0.239 ):
  • There is a moderate negative correlation between ACEs and maternal education.
  • This indicates that individuals with higher levels of childhood adversity tend to have lower levels of educational attainment.
  1. STRESS and Meduc ( r = -0.210 ):
  • A moderate negative correlation exists between stress and maternal education.
  • This suggests that individuals with lower educational attainment tend to experience higher stress levels during pregnancy.

Summary & Implications

Women with more Adverse Childhood Experiences (ACEs) tend to experience higher levels of stress during pregnancy and have lower education levels. Higher maternal education is linked to lower stress, potentially due to greater access to resources, stability, or support systems. This is important. When interpreting results, it is very important to go back to the original operationalization of the variables so we are on the same page. How is stress defined here? And, what may be some limitations both methodologicall and conceptually? Whereas we know this analysis is not causal, we can begin linking the results to some important policy implications See Barboza-Salerno (2020) here .

Compute Partial and Semi-Partial Correlations

# Compute Partial Correlation (controlling for ACEs)
partial_corr <- pcor(data_subset)
print("Partial Correlation Matrix:")
[1] "Partial Correlation Matrix:"
print(partial_corr$estimate)
             ACEs     STRESS      Meduc
ACEs    1.0000000  0.3062254 -0.1829213
STRESS  0.3062254  1.0000000 -0.1410824
Meduc  -0.1829213 -0.1410824  1.0000000
# Compute Semi-Partial Correlation (controlling for ACEs only in STRESS)
semi_partial_corr <- spcor(data_subset)
print("Semi-Partial Correlation Matrix:")
[1] "Semi-Partial Correlation Matrix:"
print(semi_partial_corr$estimate)
             ACEs     STRESS      Meduc
ACEs    1.0000000  0.2972802 -0.1719481
STRESS  0.2993577  1.0000000 -0.1326190
Meduc  -0.1788189 -0.1369612  1.0000000

Correlation Analysis

We computed three types of correlation matrices:

  1. Zero-Order (Regular) Correlation: The direct correlation between variables.
  2. Partial Correlation: The correlation between two variables while controlling for a third variable (Meduc).
  3. Semi-Partial Correlation: The correlation between two variables while controlling for a third variable’s influence on just one of them.

Results and Interpretation

Regular (Zero-Order) Correlation from above

Variable ACEs STRESS Meduc
ACEs 1.00 0.341 -0.239
STRESS 0.341 1.00 -0.210
Meduc -0.239 -0.210 1.00
  • ACEs and STRESS: ( r = 0.341 ) → A moderate positive correlation, indicating that individuals with higher ACEs tend to experience higher stress levels during pregnancy.
  • ACEs and Meduc: ( r = -0.239 ) → A negative correlation, suggesting that individuals with more childhood adversity tend to have lower educational attainment.
  • STRESS and Meduc: ( r = -0.210 ) → A negative correlation, implying that lower maternal education is linked to higher stress.

Partial Correlation

Variable ACEs STRESS Meduc
ACEs 1.00 0.306 -0.182
STRESS 0.306 1.00 -0.141
Meduc -0.182 -0.141 1.00
  • ACEs and STRESS controlling (partialing out) Meduc: ( r = 0.306 ) → The correlation remains positive but slightly decreases compared to the zero-order correlation ( r = 0.341 ), indicating that while education partly explains the relationship, ACEs still have a significant effect on stress.
  • ACEs and Meduc controlling ACEs: ( r = -0.182 ) → The correlation between ACEs and education weakens slightly after controlling for stress.
  • STRESS and Meduc controlling for STRESS: ( r = -0.141 ) → The relationship between stress and education is weaker when controlling for ACEs.

Implication of Partial Correlation

By controlling for maternal education, we isolate the direct effect of ACEs on stress. The reduction in correlation values suggests that education contributes to stress, but ACEs continue to have a strong independent effect.


Semi-Partial Correlation (Controlling for Meduc Only in STRESS)

Variable ACEs STRESS Meduc
ACEs 1.00 0.297 -0.171
STRESS 0.299 1.00 -0.132
Meduc -0.178 -0.136 1.00
  • ACEs and STRESS: ( r = 0.297 ) → A slight decrease in the strength of the relationship compared to the partial correlation (( r = 0.306 )), meaning that education explains a small part of the ACEs-stress relationship. In other words, it’s the correlation between ACEs and the part of STRESS that is independent of Meduc.
  • ACEs and Meduc: ( r = -0.171 ) → The correlation weakens slightly after accounting for stress.
  • STRESS and Meduc: ( r = -0.132 ) → A marginal decrease in the strength of the relationship.

Implication of Semi-Partial Correlation

The semi-partial correlations examine how each independent variable uniquely contributes to the dependent variable while removing the effect of the control variable only from the dependent variable. Since the values remain similar to the partial correlations, this suggests that maternal education influences stress, but ACEs still have an independent impact.


Key Takeaways

  1. ACEs are a strong predictor of stress during pregnancy, even after controlling for maternal education.
  2. Maternal education partially explains the relationship between ACEs and stress, but ACEs continue to have an independent effect.
  3. Higher maternal education is associated with lower stress, but its effect is weaker when ACEs are accounted for.
  4. The semi-partial correlation results confirm that maternal education plays a role, but ACEs have an independent impact on stress, highlighting the importance of addressing childhood adversity in maternal mental health interventions.

These results suggest that public health interventions should target both early-life adversity (ACEs) and educational opportunities to reduce stress during pregnancy, which may have long-term effects on maternal and child health outcomes.

Conclusion

This analysis demonstrates how Maternal Education, Stress During Pregnancy, and ACEs interact within a structured correlation framework. Using partial and semi-partial correlations, we disentangle the direct and indirect effects of early-life adversity on maternal stress, providing insights for interventions aimed at reducing stress-related health disparities. If ACEs remains a significant predictor of stress after controlling for education, interventions targeting early life adversity may help alleviate psychosocial stress during pregnancy, improving both maternal and child health outcomes.

Barboza-Salerno, G. E. (2020). Cognitive readiness to parent, stability and change in postpartum parenting stress and social-emotional problems in early childhood: A second order growth curve model. Children and Youth Services Review, 113, 104958.