Dear all,
I often use tabout to describe my data but I am now struggling with the presentation of missing data.
Let's consider a factor variable var1 with four levels, one of them being "missing"
If I tabulate the factor, I get:
Array
However, what I would like to get with tabout is something like this:
Array
I could easily do it "by hand" for one single variable but the problem is that I have many similar variables in my dataset and I'd like to find something more automatic
I've been searching a solution for days now.
I've tried to use loops and the append option but it can't get a decent formatting.
I've also tried to use option mi but then it considers missing values in the calculation of proportions and in the test while I only need frequencies.
I would be very happy to receive any good idea!
Many thanks!
Robin
Related Posts with Tabout and missing data
how to calculate output of r(alpha) (short example included)?My deepest apologies if this is difficult to work with. I'm not a stata user, i'm just trying to dec…
What should I do to achieve the following result.? Code: * Example generated by -dataex-. For more info, type help dataex clear input str3 code str29 …
Creating an Abortion scaleHello Everyone, I am trying to create a 7-point scale for attitudes towards abortion for every dec…
assign variable label to variable nameHi I have a dataset that has some variables, say, X1-X10. The corresponding variable labels are 2018…
Create new variables using two categorical variablesI have three variables gender sector and wf. Gender and sector are categorical variables, where gend…
Subscribe to:
Post Comments (Atom)
0 Response to Tabout and missing data
Post a Comment