Hey everyone, I am using Stata Version 14.2. I want to compute a mean index over 4 variables but only count cases having at least 3 non missing values on those 4 variables. In SPSS you can specifiy this by setting the valid case number(3)
Code:
compute Marktf = mean.3 (emp05, emp06, ok02, ok01).
Comment