score_CCAPS_screen: Score the CCAPS subscales from CCAPS screen items

View source: R/score_CCAPS_screen.R

score_CCAPS_screenR Documentation

Score the CCAPS subscales from CCAPS screen items

Description

Scores the CCAPS screen subscales for valid CCAPS administrations.

Usage

score_CCAPS_screen(data)

Arguments

data

A data file containing CCAPS screen items

Value

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

Note

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.


jpetrovich02/CCMHr documentation built on Jan. 25, 2024, 11:57 p.m.