R/primary-coding.R
calculate_phq8_sum.Rd
Calculate sum score of PHQ-8
Patients are asked "Over the last 2 weeks, how often have you been bothered by any of the following problems?"
calculate_phq8_sum(
phq8_1,
phq8_2,
phq8_3,
phq8_4,
phq8_5,
phq8_6,
phq8_7,
phq8_8
)
vector for item "Little interest or pleasure in doing things."
vector for item "Feeling down, depressed, or hopeless."
vector for item "Trouble falling or staying asleep, or sleeping too much."
vector for item "Feeling tired or having little energy."
vector for item "Poor appetite or overeating"
vector for item "Feeling bad about yourself - or that you are a failure or have let yourself or your family down."
vector for item "Trouble concentrating on things, such as reading the newspaper or watching television."
vector for item "Moving or speaking so slowly that other people could have notived. Or the opposite - being so fidgety or restless that you have been moving around a lot more than usual."
#' Answers were coded /w levels 0 = "Not at all", 1 = "Several days", 2 = "More than half the days" and 3 = "Nearly every day"
A numeric vector with sum score of phq8