score_ctc: score_ctc: Scored data from the Communities that Care

View source: R/score_ctc.R

score_ctcR Documentation

score_ctc: Scored data from the Communities that Care

Description

This function scores the Child Behavior Questionnaire and provides subscale scores for the following behaviors: Child Approval of Drug/Alcohol Use, Child View of Drug/Alcohol Use as Harmful, Friend Approval of Drug/Acohol Use, and Parent Disapproval of Drug/Alcohol Use.

Usage

score_ctc(ctc_data, study, parID)

Arguments

ctc_data

a data.frame all items for the Child Behavior Questionnaire following the naming conventions described above

study

a string indicating which study collected the data. Currently, only option and default is 'fbs'. This parameter is included because the Food and Brain study used a highly adapted verison of the Communities that Care Questionnaire with only 16 questions

parID

(optional) name of participant ID column in intake_data. If included the output dataset will be matched by parID, if not included the output dataset will be in the order of intake_data but will have no participant identifier.

Details

To use this function, the data must be prepared according to the following criteria: 1) The data must include all individual questionnaire items 2) The columns/variables must match the following naming convention: 'ctc#' where # is the question number (1-16 for the Food and Brain Study) 3) All questions must have the numeric value for the choice: 1 - Not at all, 2 - A little, 3 - Not sure/in the middle, 4 - Somewhat, 5 - A lot, -99 - Skip

Note, as long as variable names match those listed, the dataset can include other variables

Value

A dataset with subscale scores for the Child Behavior Questionnaire

References

NEED

See Also

Raw data from Qualtrics was processed using the following script: util_fbs_child_v5dat

Examples


# scoring for the ctc with IDs
ctc_score_data <- score_ctc(ctc_data, parID = 'ID')

## Not run: 



alainapearce/kellertools documentation built on Feb. 25, 2024, 7:16 a.m.