CCAPS_change: Create a data frame with CCAPS change scores between first...

View source: R/CCAPS_change.R

CCAPS_changeR Documentation

Create a data frame with CCAPS change scores between first and last administration

Description

Create a data frame with CCAPS change scores between first and last administration

Usage

CCAPS_change(
  data,
  client_identifier = UniqueClientID,
  center_identifier = CcmhID,
  add_items = NA,
  include_first = F,
  include_last = F
)

Arguments

data

A data frame with CCAPS data.

client_identifier

The column uniquely identifying each client. By default, UniqueClientID.

center_identifier

The column uniquely identifying each center. By default CcmhID.

add_items

Specify the columns or CCAPS variables outside of CCAPS subscales to be included in the returned data frame. Default is NA, resulting in no additional CCAPS items being added to the returned data frame. Multiple items should be listed in the following manner: c("Variable1", "Variable2"). Option "all" selects all CCAPS 34 items to be in the returned data frame.

include_first

A logical argument that specifies if subscale or item scores from the first completion of the CCAPS should be included in the returned data frame. By default FALSE resulting in CCAPS subscale or specified variable scores of the first administration not being included in the returned data frame. Option "TRUE" adds first administration scores of CCAPS subscales and specified items to the returned data frame.

include_last

A logical argument that specifies if subscale or item scores from the last completion of the CCAPS should be included in the returned data frame. By default FALSE resulting in CCAPS subscale or specified variable scores of the last administration not being included in the returned data frame. Option "TRUE" adds last administration scores of CCAPS subscales and specified items to the returned data frame.

Value

A data frame with CCAPS change scores of subscales and specified CCAPS items. Based on additional arguments, scores from first and last administration will be included as well.


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