Hello, Statalist users,
Using Stata 12.1, I am trying to use summary results in the following logical expression, which generates error message "invalid syntax, r(198)".
gen miss = missing(var)
sum miss
drop miss if (r(mean) == 0 & r(sd) == 0)
How should I fix these lines of code? Any help would be highly appreciated.
Thanks in advance.
Using Stata 12.1, I am trying to use summary results in the following logical expression, which generates error message "invalid syntax, r(198)".
gen miss = missing(var)
sum miss
drop miss if (r(mean) == 0 & r(sd) == 0)
How should I fix these lines of code? Any help would be highly appreciated.
Thanks in advance.
Comment