score_CAPS
Returns current and lifetime PTSD symptom counts and
diagnosis codes given appropriate input. Typically input is given as
column subsets of a larger dataframe. All inputs must be numeric.
1 2 3 4 5 6 7 8 9 10 | score_CAPS(
crita,
life_frequency,
curr_frequency,
life_intens = 0,
curr_intens = 0,
nacorrect = FALSE,
correct.errors = FALSE,
cluster.scores = FALSE
)
|
crita |
n×1 vector of criterion A (qualifying trauma) |
life_frequency |
n×25 vector of reported lifetime frequency. |
curr_frequency |
n×25 vector of reported current frequency. |
correct.errors |
should the program correct common interview errors. Currently this means if lifetime score for a symtom is lower than current, lifetime will be overwritten. |
cluster.scores |
should the program print cluster scores. |
life_intensity |
n×20 vector of reported lifetime intensity - defaults to 0 for cases where intensity not reported (eg parent report). |
curr_intensity |
n×20 vector of reported current intensity - defaults to 0 for cases where intensity not reported (eg parent report). |
skipped.is.na |
are items which have been properly skipped (eg. all items following absence of crit A) coded as NA? If so, the program will substitute appropriately with zeroes before scoring. Otherwise it will attempt to score with standard R handling of missing values. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.