library(dplyr)
library(psych)
library(knitr)
library(ggplot2)
library(readxl)14 Creating Composite Scores from Multi-Item Measures
How to create a composite and check reliability of the measure
This chapter teaches researchers to create composite scores from multi-item measures and to check their reliability with Cronbach’s alpha. The Play uses the Regulatory Focus Questionnaire (Higgins et al., 2001) to show the four steps: define which items belong to each construct, identify and reverse the negatively worded items, average the items with the psych package’s scoreItems(), and read alpha (acceptable reliability is usually .70 or above). The Lab repeats the steps on the lab dataset: a unidimensional scale (the eight WELLBEING items), a multidimensional scale (STIGMA with its public and self subscales and reverse items), and the K10, with impute = “none” so that scoreItems() matches rowMeans() and a skipped item stays missing. Your Turn gives the template for the team’s own measures, and the Required box says how to report alpha in the Measures section.
composite scores, Cronbach’s alpha, reliability, survey scales
psych
14.1 Dataset
The health beliefs dataset includes a range of variables, including promotion focus and prevention focus, measured with the 11-item Regulatory Focus Questionnaire (RFQ; Higgins et al., 2001). The RFQ has two subscales: six promotion items and five prevention items.
Promotion focus: a general regulatory motivational preference toward growth and change, attention to positive things, and success seeking
Prevention focus: a general regulatory motivational preference toward maintaining the status quo, avoiding negative things, and aversion to threats
14.1.1 Load Library
14.1.2 Import
# Import Excel file
healthbeliefsdata <- read_excel("data/03.15.2025.prolifichealthbeliefs.xlsx",
col_names = TRUE)
healthbeliefsdata[healthbeliefsdata == -99] <- NA
healthbeliefsdata[healthbeliefsdata == -50] <- NA
##explanation: all -99 and -50 data will be treated as missing data14.1.3 Scoring Key to Create Composites
In psychology, researchers aim to measure a construct using multiple items. For example, promotion focus (PROMOFOCUS) and prevention focus (PREVFOCUS) are two separate measures with 6 items and 5 items, respectively. To create a composite measure, each item is added and divided by the number of items, resulting in an average score for the measure.
PROMOFOCUS: (FOCUS_1+FOCUS_2+FOCUS_3+FOCUS_4+FOCUS_5+FOCUS_6) / 6PREVFOCUS: (FOCUS_7+FOCUS_8+FOCUS_9+FOCUS_10+FOCUS_11) / 5
No single item is perfectly predictive of a construct. In rare cases, a single item can approximate a construct, such as the single item self-esteem scale (Robbins et al., 2001) for self esteem and the single item life satisfaction measure. In most cases, a single item is highly problematic. For this reason (and to create a continuous – not ordinal), multiple items are averaged to create a composite score.
library(psych)
# Create keys for scoring
focus_keys <- list(
PROMOFOCUS = c("FOCUS_1", "FOCUS_2", "FOCUS_3", "FOCUS_4", "FOCUS_5", "FOCUS_6"),
PREVFOCUS = c("FOCUS_7", "FOCUS_8", "FOCUS_9", "FOCUS_10", "FOCUS_11")
)
#explanation: this creates a list called focus_keys which tells R which survey questions belong to which composite score (promotion or prevention)- Items 1-6 measure promotion focus (
PROMOFOCUS) - Items 7-11 measure prevention focus (
PREVFOCUS)
14.1.4 Scoring Key with Reverse Items
Affirmative Items
Below are two examples of FOCUS items:
Promotion Item (
FOCUS_3): “How often have you accomplished things that got you”psyched” to work even harder?”Prevention Item (
FOCUS_9): “How often did you obey rules and regulations that were established by your parents?”
These items were measured on a 5-point scale:
- Never or Seldom (1)
- Rarely (2)
- Sometimes (3)
- Often (4)
- Very often (5)
Negative Items (aka Reverse-Coded Items)
- Promotion Item (
FOCUS_6): “I have found very few hobbies or activities in my life that capture my interest or motivate me to put effort into them.” - Prevention Item (
FOCUS_8): “Did you get on your parents’ nerves often when you were growing up?”
Most often, a construct is measured with affirmative items where the most agreement/occurrence (very often) is coded as a 5 on a 1-5 scale. Sometimes, a construct also includes negative items where the strongest agreement (very often) to a negative item is coded as 1 on a 1-5 scale. In essence, for reverse-scored items, the coded values are flipped.
Notice how the phrase “very few” in the item –”I have found very few hobbies or activities in my life that capture my interest or motivate me to put effort into them.” – captures the absence of promotion focus.
On the original scale, “Very often” = 5. However, because this is a negatively worded item, we reverse the scoring:
Original 5 → Reversed to 1
Original 4 → Reversed to 2
Original 3 → Stays 3
Original 2 → Reversed to 4
Original 1 → Reversed to 5
Therefore, if someone reports “Very often” (5) for FOCUS_6, after reverse coding it becomes 1, correctly reflecting LOW promotion focus.
- symbol
The minus sign (-) before an item name tells scoreItems() to reverse code that item.
Example: - "FOCUS_6" = use original scores - "-FOCUS_6" = reverse the scores (1→5, 2→4, 3→3, 4→2, 5→1)
# reverse coding items based on scoring key from here: https://sjdm.org/dmidi/Regulatory_Focus_Questionnaire.html . Our survey did NOT put the items in the same order which is why it is different than the downloadable word doc.
focus_keys_with_reverse <- list(
PROMOFOCUS = c("-FOCUS_1", "FOCUS_2", "FOCUS_3", "-FOCUS_4", "FOCUS_5", "-FOCUS_6"),
PREVFOCUS = c("-FOCUS_7", "-FOCUS_8", "FOCUS_9", "-FOCUS_10", "-FOCUS_11") # this part includes reverse-coded items
)library(psych)
# Using scoreItems() - recommended
focus_scores <- scoreItems(focus_keys_with_reverse, healthbeliefsdata)
# Extract the scores
composite_scores <- focus_scores$scores
# Add to your dataframe
healthbeliefsdata$PROMOFOCUS <- composite_scores[, "PROMOFOCUS"]
healthbeliefsdata$PREVFOCUS <- composite_scores[, "PREVFOCUS"]14.2 Reliability Analysis
A reliability analysis of the composite measure(s) determines if the items accurately fact reflect your theoretical/conceptual construct. The indicator ranges from 0 to 1 with 1 reflecting higher correlations among the items.
# View reliability statistics
focus_scoresCall: scoreItems(keys = focus_keys_with_reverse, items = healthbeliefsdata)
(Unstandardized) Alpha:
PROMOFOCUS PREVFOCUS
alpha 0.68 0.74
Standard errors of unstandardized Alpha:
PROMOFOCUS PREVFOCUS
ASE 0.062 0.06
Average item correlation:
PROMOFOCUS PREVFOCUS
average.r 0.26 0.36
Median item correlation:
PROMOFOCUS PREVFOCUS
0.26 0.38
Guttman 6* reliability:
PROMOFOCUS PREVFOCUS
Lambda.6 0.71 0.76
Signal/Noise based upon av.r :
PROMOFOCUS PREVFOCUS
Signal/Noise 2.1 2.9
Scale intercorrelations corrected for attenuation
raw correlations below the diagonal, alpha on the diagonal
corrected correlations above the diagonal:
PROMOFOCUS PREVFOCUS
PROMOFOCUS 0.68 0.27
PREVFOCUS 0.19 0.74
Average adjusted correlations within and between scales (MIMS)
PROMO PREVF
PROMOFOCUS 0.26
PREVFOCUS 0.09 0.36
Average adjusted item x scale correlations within and between scales (MIMT)
PROMO PREVF
PROMOFOCUS 0.62
PREVFOCUS 0.14 0.69
In order to see the item by scale loadings and frequency counts of the data
print with the short option = FALSE
14.2.1 Interpreting Cronbach’s Alpha
| Alpha Value | Interpretation |
|---|---|
| α < 0.60 | Unacceptable - items don’t measure the same thing |
| α = 0.60-0.69 | Questionable - marginal reliability |
| α = 0.70-0.79 | Acceptable - adequate reliability |
| α = 0.80-0.89 | Good - strong reliability |
| α ≥ 0.90 | Excellent - very high reliability |
Our results:
Promotion Focus (α = .68): Questionable - barely acceptable
Prevention Focus (α = .74): Acceptable - adequate reliability
- Check for reverse-coded items you missed
- Look for items that don’t fit conceptually
- Consider removing problematic items
- Use at least 3-4 items per scale
In the Measures section of your RD Report and Final Report, report the results of the reliability analysis (Cronbach’s alpha) from your sample for every composite you use, including each subscale. Lab Play 4 below shows the sentence.
14.3 🏈 The Lab
Ref’s kickoff. The play used one dataset with two separate scales. Your team’s survey will have both kinds of multi-item measure: a unidimensional scale (one construct, one score, such as WELLBEING1 to WELLBEING8) and a multidimensional scale (one construct with subscales, such as stigma with public and self stigma). The lab practices both on the lab dataset, and ends with the sentence you will write in your Methods section. Try each play before you open my check.
Before you start. Open your lab .qmd, run your load-library chunk (psych must be loaded), and run source("lab_prep.R") so that mh_clean is in your environment. mh_clean already contains WELLBEING and STIGMA made with rowMeans(). In this lab you will make them again with scoreItems(), which also gives you the reliability.
14.3.1 Lab Play 1: A unidimensional scale (WELLBEING)
Positive mental well-being is measured with eight items, WELLBEING1 to WELLBEING8, all worded in the same direction, on a 1-to-5 frequency scale (none of the time to all of the time). Make a scoring key with one entry, run scoreItems() with impute = "none", read the alpha, and add the score to mh_clean as WELLBEING_SI. Then check that it equals the WELLBEING that lab_prep.R made.
impute
When a participant skipped an item, scoreItems() fills in the item’s median for that person by default (impute = "median"). With impute = "none", it averages the items the person did answer, which is what rowMeans(na.rm = TRUE) does. Both are defensible. Pick one for your report, use it for every composite, and say which one you used in your Methods.
wb_keys <- list(WELLBEING = c("WELLBEING1", "WELLBEING2", "WELLBEING3", "WELLBEING4",
"WELLBEING5", "WELLBEING6", "WELLBEING7", "WELLBEING8"))
lab_wb <- scoreItems(wb_keys, mh_clean, impute = "none")
lab_wb # alpha is in the first table
mh_clean$WELLBEING_SI <- lab_wb$scores[, "WELLBEING"]
all.equal(as.numeric(mh_clean$WELLBEING_SI), mh_clean$WELLBEING) # same score as rowMeans()
#source: The Quantitative Playbook for R (McCarty, 2026); psych package (Revelle)
#explanation: one key with eight items, no reverse items; scoreItems() returns the mean of the eight items and Cronbach's alpha14.3.2 Lab Play 2: A multidimensional scale (STIGMA with two subscales)
Stigma has eight items in two subscales: public stigma (STIGMA_PUB1 to STIGMA_PUB4_R) and self stigma (STIGMA_SELF1_R to STIGMA_SELF4_R). Three items end in _R: they are reverse items, stored in the original direction (Name and Recode Variables in Qualtrics), so they need a - in the key. Make a key with three entries, STIGMA_PUB, STIGMA_SELF, and STIGMA (all eight), run scoreItems(), and add all three scores to mh_clean. Then look at how the two subscales relate.
stig_keys <- list(
STIGMA_PUB = c("STIGMA_PUB1", "STIGMA_PUB2", "STIGMA_PUB3", "-STIGMA_PUB4_R"),
STIGMA_SELF = c("-STIGMA_SELF1_R", "STIGMA_SELF2", "STIGMA_SELF3", "-STIGMA_SELF4_R"),
STIGMA = c("STIGMA_PUB1", "STIGMA_PUB2", "STIGMA_PUB3", "-STIGMA_PUB4_R",
"-STIGMA_SELF1_R", "STIGMA_SELF2", "STIGMA_SELF3", "-STIGMA_SELF4_R"))
lab_stig <- scoreItems(stig_keys, mh_clean, impute = "none")
lab_stig # three alphas
mh_clean$STIGMA_PUB <- lab_stig$scores[, "STIGMA_PUB"]
mh_clean$STIGMA_SELF <- lab_stig$scores[, "STIGMA_SELF"]
mh_clean$STIGMA <- lab_stig$scores[, "STIGMA"]
cor(mh_clean$STIGMA_PUB, mh_clean$STIGMA_SELF, use = "complete.obs")
#source: The Quantitative Playbook for R (McCarty, 2026); psych package (Revelle)
#explanation: one key per subscale plus one for the total; the minus sign reverses the _R items before averaging; the subscale correlation shows they measure related but different parts of stigma14.3.3 Lab Play 3: A scale that is summed, not averaged (the K10)
The ten DISTRESS items are the Kessler Psychological Distress Scale (K10; Kessler et al., 2002), and Kessler’s scoring adds the items (10 to 50) instead of averaging them, because the published cut-offs are for the total (Transforming Your Data). scoreItems() can do that too: add totals = TRUE. (Keep the default impute here: a sum of only the answered items would be too low, and scoreItems() warns you about that.) Score the K10 and compare with K10_TOTAL from lab_prep.R.
k10_keys <- list(K10 = paste0("DISTRESS", 1:10)) # the same as typing the ten names
lab_k10 <- scoreItems(k10_keys, mh_clean, totals = TRUE)
lab_k10
head(cbind(lab_k10$scores, mh_clean$K10_TOTAL))
#source: The Quantitative Playbook for R (McCarty, 2026); Kessler et al. (2002)
#explanation: totals = TRUE makes scoreItems() sum the items instead of averaging them, which is how the K10 is scored14.3.4 Lab Play 4: Write the sentence for your Methods section
Every composite in your report needs one sentence in the Measures part of your Methods: what the scale measures, how many items, the response scale, how it was scored, any reverse items, and the reliability in this sample. Write those sentences for WELLBEING and STIGMA.
Ref’s final whistle. Put the sentences from Lab Play 4 in your coding journal: you will reuse their shape for your own measures. Save, render, back up to your ELN.
14.4 🏆 Your Turn
Aim for 6 to 10 characters for the measure’s name, and 14 or fewer for the whole tag including the subscale and the item number (AVOID_SLEEP1 is 12). That is short enough to read in a column header, in a plot legend, and in a line of R code, and long enough to be decoded without the codebook.
The tools will let you go longer, so the limit is readability, not software: R accepts names up to 10,000 characters, and Qualtrics only truncates an export tag when you export to SPSS, which cuts at 64. A name that needs 30 characters usually needs an abbreviation instead: Health Information Avoidance becomes AVOID, Kessler Psychological Distress becomes DISTRESS. Put the full name in your team codebook, where the variable name abbreviation gets explained once.
library(psych)
my_keys <- list(
SWAPMEASURE = c("SWAPITEM1", "SWAPITEM2", "-SWAPITEM3_R", "SWAPITEM4"), # SWAP: one entry per composite; - for reverse items
SWAPSUBSCALE_A = c("SWAPITEM1", "SWAPITEM2"), # SWAP: subscales, if your measure has them
SWAPSUBSCALE_B = c("-SWAPITEM3_R", "SWAPITEM4")
)
my_scores <- scoreItems(my_keys, cleandata, impute = "none") # cleandata = your cleaned copy of alldata (Import Data Once)
my_scores # alpha for every entry in the key
cleandata$SWAPMEASURE <- my_scores$scores[, "SWAPMEASURE"] # SWAP: add each score you will use| Criteria | Ask yourself |
|---|---|
| Items from the codebook | Does every entry in the key match the items listed for that measure in your team codebook, spelled exactly? |
| Reverse items | Does every item whose name ends in _R have a - in front of it, and no other item does? |
| Subscales and total | If the measure has subscales, did you score each subscale and the total? |
| Sum or mean | Did you score the way the published scale is scored (totals = TRUE for a summed scale such as the K10)? |
| Alpha | Is every alpha at least .70? If not, did you check the reverse items first, and then decide (and record) what to do? |
| Methods sentence | Does each composite have a Methods sentence with the number of items, response scale, direction, reverse items, scoring, and the alpha from your sample? |
| Score in the data | Did you add each score to cleandata with a name that follows the naming rules (WELLBEING, STIGMA_PUB, not score1)? |
14.5 References
Andrews, G., & Slade, T. (2001). Interpreting scores on the Kessler Psychological Distress Scale (K10). Australian and New Zealand Journal of Public Health, 25(6), 494–497. https://doi.org/10.1111/j.1467-842X.2001.tb00310.x
Higgins, E. T., Friedman, R. S., Harlow, R. E., Idson, L. C., Ayduk, O. N., & Taylor, A. (2001). Achievement orientations from subjective histories of success: Promotion pride versus prevention pride. European Journal of Social Psychology, 31(1), 3–23. https://doi.org/10.1002/ejsp.27
Kessler, R. C., Andrews, G., Colpe, L. J., Hiripi, E., Mroczek, D. K., Normand, S.-L. T., Walters, E. E., & Zaslavsky, A. M. (2002). Short screening scales to monitor population prevalences and trends in non-specific psychological distress. Psychological Medicine, 32(6), 959–976. https://doi.org/10.1017/S0033291702006074
Kessler, R. C., Barker, P. R., Colpe, L. J., Epstein, J. F., Gfroerer, J. C., Hiripi, E., Howes, M. J., Normand, S.-L. T., Manderscheid, R. W., Walters, E. E., & Zaslavsky, A. M. (2003). Screening for serious mental illness in the general population. Archives of General Psychiatry, 60(2), 184–189. https://doi.org/10.1001/archpsyc.60.2.184
Revelle, W. (2024). psych: Procedures for psychological, psychometric, and personality research (R package). Northwestern University. https://CRAN.R-project.org/package=psych