R/primary-coding.R
calculate_phq15_sum.RdCalculate sum score of PHQ15
Patients are asked "During the past 4 weeks, how much have you been bothered by any of the following problems?"
calculate_phq15_sum(
phq15_1,
phq15_2,
phq15_3,
phq15_4,
phq15_5,
phq15_6,
phq15_7,
phq15_8,
phq15_9,
phq15_10,
phq15_11,
phq15_12,
phq15_13,
phq15_14,
phq15_15
)vector for item "Stomach pain"
vector for item "Back pain"
vector for item "Pain in your arms, legs, or joints (kneeps, hips, etc.)"
vector for item "Menstrual cramps or other problems with your periods [Women only]"
vector for item "Headaches"
vector for item "Chest pain"
vector for item "Dizziness"
vector for item "Fainting spells"
vector for item "Feeling your heart pound or race"
vector for item "Shortness of breath"
vector for item "Pain or problems during sexual intercourse"
vector for item "Constipation, loos bowels, or diarrhea"
vector for item "Nausea, gas, or indigestion"
vector for item "Feeling tired or having low energy"
vector for item "Trouble sleeping"
Answers were coded /w levels 0 = "Not bothered at all", 1 = "Bothered a little" and 2 = "Bothered a lot"
A numeric vector with sum score of phq15