Hi, I have created a varlist
containing a total of 346 variables. I checked manually whether those variables contain missing values and it turned out they do. The missing values are decoded to .a-.h. Now I want to calculate the number of missing values of each observation as a new variable as
, but it counts 0 for all observations. If I insert every singe variable instead of the varlist as
the code works. I followed the instructions for rowmiss and studied the STATA help but couldn't find any reason why my code doesn't work.
Thanks for help / answers to my problem in advance!
Tabea
Code:
global x immiyear corigin gebmonat
Code:
egen anzmis = rowmiss(`x')
Code:
egen anzmis = rowmiss(immiyear corigin gebmonat)
Thanks for help / answers to my problem in advance!
Tabea

Comment