| Title: | Scoring for Common Loneliness Scales |
|---|---|
| Description: | Scoring functions for widely used loneliness measures, with response keys and reverse-scoring drawn from the original scale manuals. Covers the UCLA Loneliness Scale Version 3 and its three-item short form, the de Jong Gierveld 11- and 6-item scales, the Children's Loneliness and Social Dissatisfaction Scale, and the short Social and Emotional Loneliness Scale for Adults. Out-of-range responses raise a warning, and missing-data rules follow each scale's manual. |
| Authors: | Natalie Byrd [aut, cre] (ORCID: <https://orcid.org/0009-0002-7395-844X>) |
| Maintainer: | Natalie Byrd <[email protected]> |
| License: | CC0 |
| Version: | 0.1.0 |
| Built: | 2026-10-05 10:28:58 UTC |
| Source: | https://github.com/nsbyrd/lonelyr |
Registry of verified loneliness scales
loneliness_scalesloneliness_scales
An object of class list of length 6.
Dichotomous scoring from the scale manual (de Jong Gierveld & Van Tilburg, 1999). "More or less" always counts toward loneliness, and the scored direction flips by item valence. One missing item scores 0; two or more return NA.
score_djg(data, items, negative, positive, neutral, bands = FALSE)score_djg(data, items, negative, positive, neutral, bands = FALSE)
data |
Data frame with the item columns. |
items |
Item column names in scale order. |
negative, positive
|
Integer positions of the negatively worded (emotional) and positively worded (social) items. |
neutral |
Code for the "more or less" response: 2 on a 3-point coding (1 no, 2 more or less, 3 yes) or 3 on a 5-point coding (1 no! to 5 yes!). |
bands |
If TRUE, adds the manual's tentative severity category (11-item only). |
Data frame with djg_total, djg_emotional, djg_social, and
djg_n_missing.
de Jong Gierveld, J., & Van Tilburg, T. (1999). Manual of the Loneliness Scale. Vrije Universiteit Amsterdam.
d <- as.data.frame(matrix(2, nrow = 2, ncol = 11)) names(d) <- paste0("q", 1:11) score_djg(d, names(d), negative = c(2, 3, 5, 6, 9, 10), positive = c(1, 4, 7, 8, 11), neutral = 2)d <- as.data.frame(matrix(2, nrow = 2, ncol = 11)) names(d) <- paste0("q", 1:11) score_djg(d, names(d), negative = c(2, 3, 5, 6, 9, 10), positive = c(1, 4, 7, 8, 11), neutral = 2)
Reverse-keys the positively worded items and returns the summed and mean scores. Responses outside the expected range raise a warning, which catches a mis-coded column.
score_likert( data, items, reverse = integer(0), response_range = c(1, 4), max_missing = 0 )score_likert( data, items, reverse = integer(0), response_range = c(1, 4), max_missing = 0 )
data |
Data frame with the item columns. |
items |
Character vector of item column names, in scale order. Order matters: reverse-keying is applied by item position. |
reverse |
Integer positions of the reverse-scored items. |
response_range |
Length-2 numeric giving the low and high response anchors. |
max_missing |
Most missing items allowed before a score returns NA. Above 0, the total is prorated from the item mean. |
Data frame with columns sum, mean, and n_valid.
Russell, D. W. (1996). UCLA Loneliness Scale (Version 3): Reliability, validity, and factor structure. Journal of Personality Assessment, 66(1), 20-40.
d <- as.data.frame(matrix(3, nrow = 2, ncol = 20)) names(d) <- paste0("q", 1:20) score_likert(d, names(d), reverse = c(1, 5, 6, 9, 10, 15, 16, 19, 20))d <- as.data.frame(matrix(3, nrow = 2, ncol = 20)) names(d) <- paste0("q", 1:20) score_likert(d, names(d), reverse = c(1, 5, 6, 9, 10, 15, 16, 19, 20))
Looks up the scale in loneliness_scales and uses the right engine.
score_loneliness(data, items, scale, neutral = NULL, bands = FALSE)score_loneliness(data, items, scale, neutral = NULL, bands = FALSE)
data |
Data frame with the item columns. |
items |
Item column names in scale order. |
scale |
Scale key, e.g. "ucla20", "ucla3" (also known as "tils"), "djg11", "djg6", "lsdq", "selsa_s". |
neutral |
Required for de Jong scales: the "more or less" response code. |
bands |
Passed to the de Jong engine for the 11-item severity category. |
A data frame of scores; columns depend on the scale.
Asher, Hymel, and Renshaw's (1984) 24-item scale. The eight filler items (2, 5, 7, 11, 13, 15, 19, 23) are dropped. The six positively worded competence items (1, 4, 8, 10, 16, 22) are reverse-keyed so a higher total means more loneliness.
score_lsdq(data, items, max_missing = 0)score_lsdq(data, items, max_missing = 0)
data |
Data frame with the 24 item columns. |
items |
The 24 column names in order (fillers included; dropped inside). |
max_missing |
Most missing scored items allowed before returning NA. |
Data frame with lsdq_sum and lsdq_n_valid.
Asher, S. R., Hymel, S., & Renshaw, P. D. (1984). Loneliness in children. Child Development, 55(4), 1456-1464.
d <- as.data.frame(matrix(3, nrow = 2, ncol = 24)) names(d) <- paste0("q", 1:24) score_lsdq(d, names(d))d <- as.data.frame(matrix(3, nrow = 2, ncol = 24)) names(d) <- paste0("q", 1:24) score_lsdq(d, names(d))
DiTommaso, Brannen, and Best's (2004) 15-item scale, three subscales of five items each. Items 4, 5, 8, 9, 10, 14, 15 are reverse-keyed (8 minus score). Subscale scores are item means, higher meaning lonelier. Family and romantic combine into an emotional loneliness score.
score_selsa_s(data, items, max_missing = 0)score_selsa_s(data, items, max_missing = 0)
data |
Data frame with the 15 item columns. |
items |
The 15 column names in order: social 1-5, family 6-10, romantic 11-15. |
max_missing |
Most missing items allowed per subscale before that subscale returns NA. |
Data frame with selsa_social, selsa_family, selsa_romantic,
selsa_emotional, and selsa_n_valid.
DiTommaso, E., Brannen, C., & Best, L. A. (2004). Measurement and validity characteristics of the short version of the Social and Emotional Loneliness Scale for Adults. Educational and Psychological Measurement, 64(1), 99-119.
d <- as.data.frame(matrix(4, nrow = 2, ncol = 15)) names(d) <- paste0("q", 1:15) score_selsa_s(d, names(d))d <- as.data.frame(matrix(4, nrow = 2, ncol = 15)) names(d) <- paste0("q", 1:15) score_selsa_s(d, names(d))