ccaps34_cuts: Create CCAPS-34 cut points

View source: R/CCAPS34_cuts.R

ccaps34_cutsR Documentation

Create CCAPS-34 cut points

Description

Creates binary variables for CCAPS-34 subscales indicating whether the score is equal to or above (1) or below (0) the low and high cut respectively.

Usage

ccaps34_cuts(data, version = 2019, first = F)

Arguments

data

A data file containing CCAPS-34 subscales

version

The version of CCAPS cut points to use. Currently, 2018 & 2019 are available.

first

True indicates the cut points should be based on variabels with _first.

Value

A data frame with all the original data in data, and several additional columns of cut scores coded 1 for above cut score and 0 for below cut score.

Note

If data does not contain the proper CCAPS subscale names, it will return an error.

Examples

## Not run: 
TI1718 <- ccaps34_cuts(TI1718)

## End(Not run)

CCMH-PSU/CCMHr documentation built on Jan. 31, 2024, 1:08 a.m.