get_phq: get_phq function

View source: R/get_PHQ.R

get_phqR Documentation

get_phq function

Description

get_phq function

Usage

get_phq(dataset, subscales = F, completers = T)

Arguments

dataset

original dataset "PHQ-9" from the bundle

subscales

boolean parameter, if True includes to the returned dataframe moves subscales

completers

boolean parameter, if True filters out participants that are not labeled as completers

Value

either dataframe with 5 columns: PIN, response, phq_sum, phq_cat, phq_sev or dataframe with 7 columns: PIN, response, phq_sum, phq_cat, phq_sev, phq_sym_nsom, phq_symp_som


Art83/CompPsychQ documentation built on April 21, 2023, 3:36 p.m.