score_CAPS: This is a scoring program for the CAPS-V, using rules from...

Description Usage Arguments

View source: R/CAPS-V.R

Description

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.

Usage

 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
)

Arguments

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.


halpclub/sdlabFunctions documentation built on Dec. 16, 2019, 12:34 p.m.