Give it a clear name (for example, dapr3_lab09.Rmd).
In the first code chunk, load the packages you’ll need this week:
tidyverse
lavaan
semPlot
Quality Street
Our exercises today are concerning the factor structure of the “WHOQOL-BREF” - a brief measure of quality of life developed by the World Health Organisation (WHO). It contains 26 questions (the first two of which are treated individually as general single item measures). The remaining 24 questions captures four related aspects of quality of life: Physical, Psychological, Social and Environmental.
In practice, these four domain scores are often highly correlated (\(r > .70\)). Researcher A is curious about whether this scale is genuinely measuring four distinct domains or simply reflecting one underlying construct (a “General Quality of Life”). She wants to test whether a complex 4-factor structure is strictly necessary to explain the responses, or whether a simpler 1-factor model is sufficient. She collects WHOQOL-BREF data from 300 adults aged 25 to 55.
The wordings of the items can be found below.
The dataset can be accessed at https://uoepsy.github.io/data/whoqolbref-sampleA.csv
Item Wordings
q
domain
wording
q1
NA
How would you rate your quality of life?
q2
NA
How satisfied are you with your health?
q3
Physical
To what extent do you feel that (physical) pain prevents you from doing what you need to do?
q4
Physical
How much do you need any medical treatment to function in your daily life?
q5
Psychological
How much do you enjoy life?
q6
Psychological
To what extent do you feel your life to be meaningful?
q7
Psychological
How well are you able to concentrate?
q8
Environmental
How safe do you feel in your daily life?
q9
Environmental
How healthy is your physical environment?
q10
Physical
Do you have enough energy for everyday life?
q11
Psychological
Are you able to accept your bodily appearance?
q12
Environmental
Have you enough money to meet your needs?
q13
Environmental
How available to you is the information that you need in your day-to-day life?
q14
Environmental
To what extent do you have the opportunity for leisure activities?
q15
Physical
How well are you able to get around?
q16
Physical
How satisfied are you with your sleep?
q17
Physical
How satisfied are you with your ability to perform your daily living activities?
q18
Physical
How satisfied are you with your capacity for work?
q19
Psychological
How satisfied are you with yourself?
q20
Social
How satisfied are you with your personal relationships?
q21
Social
How satisfied are you with your sex life?
q22
Social
How satisfied are you with the support you get from your friends?
q23
Environmental
How satisfied are you with the conditions of your living place?
q24
Environmental
How satisfied are you with your access to health services?
q25
Environmental
How satisfied are you with your transport?
q26
Psychological
How often do you have negative feelings such as blue mood, despair, anxiety, depression?
Question 1
First, let’s work with the factor model that is suggested by the WHO. We can then see if this factor structure provides a good fit to the responses from our sample.
In the syntax for lavaan, specify the model. (We need to specify the model that links the specific questions to their relevant “domains”)
whqb_a <-read_csv("https://uoepsy.github.io/data/whoqolbref-sampleA.csv")fit_who <-cfa(who_mod, data = whqb_a, std.lv =TRUE)fitmeasures(fit_who)[c("rmsea","srmr","cfi","tli")]
rmsea srmr cfi tli
0.0244 0.0416 0.9766 0.9738
Question 3
Examine the modification indices.
Even if the model already “fits well”, this can help to highlight possible issues with the measurement instrument.
What might large residual covariances between two items tell us?
You might notice that these top 3 - questions q3, q4, q26 - are the only negatively worded questions! Respondents often process negatively framed items with their specific cognitive bias that can creating residual correlation among them. But this is more noise due to the method than theoretically interesting domain variability.
Question 4
When you fitted your model, which did you use?
cfa(model, data)cfa(model, data, std.lv =TRUE)
To help us better understand how this changes things, fit the other one now, and examine what (if anything) is different.
global fit of the model
modification indices
in summary():
factor loading estimates (the Estimate column under the “Latent Variables” section)
factor covariance estimates (the Estimate column under the “Covariances” section)
Bonus Challenge: can you see the link between estimates from the two versions?
without std.lv = TRUE, the first loading is fixed to 1, and all the others are in comparison to that one
with std.lv = TRUE, the loadings are all freely estimated but the latent variable has a variance of 1
For instance, the items loading on the social domain have these loadings when we use std.lv = TRUE: 0.576, 0.489, 0.510.
And when we don’t use it, we get: 1.000, 0.849, 0.885.
To see how they match up:
c(0.576, 0.489, 0.510) /0.576
[1] 1.000 0.849 0.885
The factor covariances are also different.
without std.lv = TRUE, they are covariances between latent variables that have scales fixed to the same as their first item. covariances are dependent on units, remember!
with std.lv = TRUE, the latent variables have variances of 1, so they are all standardised. so covariances become correlations!
Question 5
How do the individual items look? How much variance in each item is explained by its corresponding factor?
Bonus Challenge: Can you calculate the “average variance explained” for each factor?
Hints
When we have a standardised factor loading, it is just like EFA, where squaring it gives the variance in an item explained by a factor.
Solution 6. I love making plots rather than looking at numbers, so here we go!
Researcher B is working on the same project, and wonders whether this factor structure holds up across different age demographics. Specifically, he wants to ask if the optimal factor structure identified in younger adults (25–55) holds true in older adults aged 65+? Is the WHOQOL-BREF measurement “invariant” across these two age groups, or do older adults interpret and answer the items differently?
To test this, Researcher B recruits a second sample of 300 adults aged 65 and above who complete the same 26 items.
Compare the loadings of the models fitted to the 25-55 year old sample and the 65+ sample.
Can you make any suggestions on why certain items might mean different things to these two groups?
Solution 10. We can look through summary() or standardizedsolution() for each model and just compare the various numbers. Or we could draw diagrams for both models using semPaths() and compare.
However, i’m going to plot stuff again (you don’t have to, i just prefer it!).
What does it tell us? it looks like loadings for q12, q18, and q21 specifically are quite a lot weaker than in the younger group. And some questions (q25) are a bit higher!
How satisfied are you with your capacity for work?
q21
Social
How satisfied are you with your sex life?
q25
Environmental
How satisfied are you with your transport?
This makes a little bit of sense when we think about it. People over the age of 65 are often retired, meaning q18 is kind of irrelevant? And the same reasoning might be said for q21. They might have fewer financial outgoings, making q12 less indicative of quality of life. q25 possibly becomes far more indicative of quality of life because older people will be more likely to be infirm and unable to drive etc.
Question Extra 10
Researcher A, who is happy that the WHOQOL-BREF appears to fit well in her sample of working aged adults, has another question.
Which specific domain is the strongest unique predictor of the single item measure (q1) of an overall quality of life?
She fits the model below.
Can you answer her question?