R/primary-coding.R
calculate_phq4_sum.Rd
Calculate sum score of PHQ-4
Patients are asked "Over the last 2 weeks, how often have you been bothered by any of the following problems?"
calculate_phq4_sum(phq4_1, phq4_2, phq4_3, phq4_4)
vector for item "Little interest or pleasure in doing things."
vector for item "Feeling down, depressed, or hopeless."
vector for item "Feeling nervous, anxious or on edge."
vector for item "Not being able to stop or control worrying."
Answers need coded 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