Suppose i have the following data in which the variables have some missing values. I want to show the "counts" of every variable when they are 1 and 2, without counting the missing values. If i use designplot i got the same counts for every variable when that's not what indicate in the data. I change the missing values for 0 and got the result that i want, but i don't want to show the missing values in the graph. Anyone can help me to not show the missing values/zero's in the graph?
Code:

And when i change the missing values to 0, i got the next result:

Thanks everyone!
Code:
Code:
input float (var1 var2 var3) 1 1 . 2 2 2 2 . . 1 . . 1 1 . 2 2 2 2 2 2 1 1 . 2 . 2 . . . 2 2 . . . . . 1 . 2 2 2 2 2 2 1 . 1 2 2 2 1 1 1 1 . . 2 2 . 2 2 2 1 1 . 2 2 2 1 1 . 2 2 2 1 1 1 . 2 2 . . . . . . . 2 . 1 1 1 2 2 . 1 1 . 2 2 2 . 2 . . 1 . 2 2 . . . 1 end label define mylabel 1 "T=0" 2 "T=5" label val var* mylabel gen data = 1 label var data "Variables" designplot data var1 var2 var3, stat(count) min(1) max(1) variablelabels recast(hbar)
And when i change the missing values to 0, i got the next result:
Thanks everyone!
Comment