Michael833/EGRA---Intern-work — Issue #72: ssmeclean: Make it!
Author: Alexandersax
Created: 2012-02-17 17:37:06+00:00
State: open

Covers COM, COR, and CIN.

Additionally, should create 9 minute blocks variables that contain the primary language used, i.e. mostly english or mostly kinyarwandan.

Possible code:
`capture confirm label language
if _rc label define language ==
scalar max_iterations = mod(com_max-3) + 1
forvalues i = 3/max_iterations /*in blocks of 3*/ {
egen block`i' = rowmedian(com`j'_1`first'-com`j'_`third')
by class_id: replace block`i' = mode(block`i')
label variable block`i' "Predominant language in minutes `i' through `j'"
label values block`i' language
}`

But I need a way to combine all the dummy subject variables to get the language out of it. Rowmax(COM13 COM14 COM15 etc.)?