1.13 Sum or Average values across multiple variables
The Center for Epidemiological Studies Depression Scale (CESD) is series of questions asked to a person to measure their level of depression. CESD
is calculated as the sum of all 20 component variables, and is already on this data set. Let’s create a new variable named sleep
as subscale for sleep quality by adding up question numbers 5, 11, and 19.
Reference: http://cesd-r.com/cesdr/