View source: R/score_CCAPS_screen.R
score_CCAPS_screen | R Documentation |
Scores the CCAPS screen subscales for valid CCAPS administrations.
score_CCAPS_screen(data)
data |
A data file containing CCAPS screen items |
A data frame with all the original data in data
, and several additional columns: Has_CCAPS
, Is_ValidCCAPS
, Depression
, Anxiety
, Social_Anxiety
, Academics
, Eating
, Frustration
, Alcohol
score_CCAPS_screen
calls on CCAPS items by name, so they must be named properly in
data
. Variable naming convention is CCAPS_01
... CCAPS_70
.
If 'data does not contain the proper CCAPS variable names
(or the naming convention was changed in the new year's data), the
function will return an error.
Administrations are considered valid and will be scored if 1/3 or less of the items on any subscale are missing, and if less than
1/2 of the data overall is missing, and if the variance of the items is > 0, indicating that the items were not all marked
as the same number.
Function does not overwrite CCAPS items to reverse score them. It creates new reverse scored version, which it then deletes.
Note that this takes several minutes to run.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.