score_ctq | R Documentation |
Score the Childhood Trauma Questionnaire – CTQ scale (Bernstein & Fink, 1998)
score_ctq(
df,
item_prefix = "CTQ_",
max_impute = 0.2,
drop_items = FALSE,
keep_reverse_codes = FALSE,
min_value = 1,
max_value = 5,
bad_items = NULL,
add_alphas = TRUE
)
df |
a data.frame containing the 28 CTQ items to be scored |
item_prefix |
a character prefix of the items names in |
max_impute |
the proportion of missingness [0..1) or number [1..n] of missing values per scale. Below this threshold, the person subscale mean will be imputed for missing items. |
drop_items |
whether to remove the item-level data from the |
keep_reverse_codes |
whether to retain the reverse coded items (suffix "r") |
min_value |
the minimum value for the item anchors, used in reverse scoring. Default: 1 |
max_value |
the highest value for the item anchors, used in reverse scoring. Default: 5 |
bad_items |
numeric value or vector of the items that need to be dropped before imputation or calculation of subscales |
add_alphas |
whether to compute coefficient alpha for subscales and return a column attribute. Default: TRUE |
Adds six columns, CTQ_emo_abuse
, CTQ_phys_abuse
, CTQ_sex_abuse
, CTQ_emo_neglect
, CTQ_phys_neglect
, and CTQ_denial
, to df
containing
the different subscales, respectively.
Note: the default CTQ scoring uses the sum of the items for the scales.
Note: the code assumes that pasting together the item_prefix
and the numbers 1:28
will yield the 28 items from the test.
Michael Hallquist, Zach Vig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.