attach_PHQ9: add depression of "PHQ-9"

Description Usage Arguments Value References

View source: R/attach_PHQ9.R

Description

add depression of "PHQ-9"

Usage

1
2
3
4
5
6
7
8
9
attach_PHQ9(
  data,
  years,
  cut,
  na0 = FALSE,
  score = FALSE,
  dpq = FALSE,
  varLabel = FALSE
)

Arguments

data

dataframe or list to be attarched

years

years

cut

one or more numeric cut point

na0

logical. whether to use missing value as 0 score

score

FALSE(default). logical. whether to add raw "PHQ-9" score and answer

dpq

FALSE(default). logical. whether to add "PHQ-9" questions

varLabel

logical. whether to add label to variable

Value

attach new column "PHQ9" with levels of None, Mild, Moderate, Moderately-Severe and Severe depression

References

Kroenke K, Spitzer RL. The PHQ-9: A new depression and diagnostic severity measure. Psychiatric Annals 2002; 32:509-521.


yikeshu0611/nhanesR documentation built on Jan. 29, 2022, 6:08 a.m.