-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPsychosocial_starter_kit.qmd
More file actions
130 lines (91 loc) · 8.09 KB
/
Psychosocial_starter_kit.qmd
File metadata and controls
130 lines (91 loc) · 8.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
---
authors:
- name: Briha Ansari
- name: Patrick Sadil
---
# Psychosocial {#sec-psychosocial}
Psychosocial data help researchers understand the complex relationship between psychological, emotional, behavioral, and social aspects of life and their influence on health outcomes. The Acute to Chronic Pain Signatures Study (A2CPS) includes several psychosocial assessments and associated Helping End Addiction Long-term (HEAL) Common Data Elements [@wandner_nih_2022] to gain a comprehensive understanding of chronic pain [@berardi_multi_2022]. These assessments include:
- Pain related psychosocial constructs
- These include pain resilience, catastrophizing, kinesiophobia, and multisensory sensitivity. Pain resilience is measured using the Pain Resilience Scale (PRS)[@slepian_development_2016]. Catastrophizing measures negative appraisal of pain using the Pain Catastrophizing Scale-6 (PCS-6) [@mcwilliams_development_2015]. Kinesiophobia (fear of movement) is measured using the Fear Avoidance Beliefs Questionnaire—Physical Activity subscale (FABQ-PA)[@waddell_fear_1993]. Sensitivity to sensory stimulation (light, sound, odor, flavor, touch) and interoception (balance, nausea, heart rate) are measured using an 8-item General Sensory Sensitivity (GSS) [@schrepf_sensory_2018].
- Mood disorders (Depression and Anxiety)
- Depression and Anxiety are measured using the 8-item Patient Health Questionnaire-8 (PHQ-8) [@kroenke_phq_2009] and the 7-item General Anxiety Disorder (GAD-7) instruments [@spitzer_brief_2006]
- Social Support
- PROMIS SFv2.0 Instrumental Support 6a questionnaire is used to measure the quality of social support received by the subjects, and PROMIS SFv2.0 Emotional Support 6a questionnaire measures subjects' perception about being valued and cared for [@hahn_measuring_2010].
- Cognitive Function and Sleep
- Multidimensional Inventory of Subjective Cognitive Impairment (MISCI) [@kratz_promis_2016] measures perceived cognitive dysfunction in patients with fibromyalgia. Sleep is assessed using the PROMIS Short Form v1.0 Sleep Disturbance 6a measure [@yu_development_2012] and Pain-Sleep Duration (Sleep II) form [@buysse_pittsburgh_1989].
- Other Assessments (Demographic, Comorbidity Questionnaire (SCQ), The Adverse Childhood Experience questionnaire (ACE), Big Five Inventory−2 short form (BFI-2-S)
- The demographic information form captures age, sex, gender, ethnicity, race, level of education, employment status, relationship status, household income, and disability status. Chronic health conditions are captured using the Self-Administered Comorbidity Questionnaire (SCQ) [@sangha_self_2003]. The Adverse Childhood Experience questionnaire (ACE) [@felitti_relationship_1998] is used to assess the history of childhood abuse and dysfunctional family dynamics retrospectively. Also at baseline, five personality constructs are measured using the Big Five Inventory−2 short form (BFI-2-S), which measure five personality domains, i.e., 1. extraversion, 2. agreeableness, 3. conscientiousness, 4. negative emotionality, and 5. open-mindedness [@soto_short_2017].
## Starting Project
### Locate Data
Where are the relevant files?
```{bash}
#| eval: false
$ /corral-secure/projects/A2CPS/products/consortium-data/pre-surgery-release-2-0-0/psychosocial/reformatted
```
### Example workflow with GAD-7 (Anxiety) and PHQ-9 (Depression)
Load libraries (Uncomment to install libraries if not already installed)
```{r setup}
#install.packages(c("tidyverse", "ggplot2"))
#load libraries
library(tidyverse)
library(ggplot2)
```
Load Data: GAD-7 (Anxiety) and PHQ-9 (Depression)
```{r load}
gad <- read_csv("data/reformatted_gad.csv")
phq <- read_csv("data/reformatted_phq.csv")
```
Join GAD-7 (Anxiety) and PHQ-9 (Depression) datasets using unique identifiers i.e. `record_id` and `guid`, and other common data elements, we will call this combined dataset `"gad_phq"`. Left join keeps all rows from the left table and matches data from the right. Right join keeps all rows from the right table and matches data from the left. Inner join keeps rows that exist in both tables. Full join keeps all rows from both tables, leaving missing values where there's no match. The type of join depends on the researchers' goals. Here we will use an inner join for exploratory data analysis purposes. In cases where the datasets have more than two columns in common the following code is helpful since it uses the common column names between the two datasets.
```{r join}
gad_phq <- inner_join(gad, phq, by = intersect(names(gad), names(phq)))
```
View columns available after merging the two datasets
```{r peak}
head(gad_phq)
```
Check data types and ensure that character variables are not stored as numeric, and that numeric variables are stored with the correct numeric type—not as character or factor.
```{r glimpse}
glimpse(gad_phq)
```
## Exploratory data analysis
Anxiety and depression frequently coexist due to shared biological mechanisms and overlapping symptoms. Approximately 50% of patients with depression also meet the criteria for having an anxiety disorder. The co-occurrence of anxiety and depression in an individual increases the risk of suicide, affects social interactions, and results in more hospitalizations [@kircanski_investigating_2017]. We are interested in looking at the association between Anxiety scores and Depression scores. While looking at the datatypes, spearman correlation would be the measure of choice since we have confirmed using the `glimpse()` functiona that those variables are stored as ordered and numeric.
**Spearman Correlation**:
Since GAD and PHQ scores are ordered but not continuous, spearman correlation here would be a better choice than pearson since it measures monotonic association between two variables by comparing their ranks, we will add the argument `use = "complete.obs"` to ignore rows with missing values.
```{r stats}
cor(gad_phq$imputed_gad_score, gad_phq$imputed_phq_score, use = "complete.obs")
```
As expected we see a very strong correlation between anxiety and depression within the A2CPS cohort i.e. 0.76. Let’s visualize these results with a simple boxplot.
```{r plot}
# Remove rows with NA in either column
gad_phq_clean <- gad_phq %>%
filter(!is.na(imputed_gad_score), !is.na(imputed_phq_score))
# Create the plot
ggplot(
gad_phq_clean,
aes(
x = factor(imputed_gad_score),
y = imputed_phq_score,
fill = factor(imputed_gad_score)
)
) +
geom_boxplot() +
labs(
title = "PHQ Score Distribution by GAD Score",
x = "GAD Score (Imputed)",
y = "PHQ Score (Imputed)",
fill = "GAD Score"
) +
theme_minimal()
```
We see that there is a positive association between Anxiety and Depression scores.
## Considerations While Working on the Project
### Methods
Self-reported assessments are collected electronically through a variety of surveys using Research Electronic Data Capture (REDCap™) and/or MyDataHelps™ (RKStudio™, CareEvolution, LLC, Ann Arbor, MI) (see below for more details). A2CPS includes the core psychosocial assessments and associated HEAL CDEs for harmonization. Remote assessments have been implemented for both English and Spanish-speaking participants. Of note: two psychosocial items were also collected during brain-imaging sessions, a pain assessement and a mood assessment.
### Data Quality
The data were exported from REDCap and may contain errors or missing values. Therefore, to ensure high-quality data, the data were cleaned and reformatted. For details, see @sec-psychosocial-methods. There are individual reformatted files as well as a combined file for psychosocial data (look for files ending in TKA and/or Thoracic).
### Cross-Modality Links
All files include `record_id` and `guid`, which serve as unique identifiers and enable linkage across psychosocial data files as well as other data modalities.
### Missing Data
Proceed with caution when merging data across psychosocial data or different modalities. Merging datasets often leads to a reduced sample size due to missing data or incomplete forms. This can lower statistical power and limit the ability to draw reliable conclusions.
### Citations
{{< include _snippets/a2cps_citations.qmd >}}