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 OLS R-square from FE model estimationHi all, The FE model estimates R-squares corresponding to: within, between and overall equations. H…
Subtract number and character separately from a string variableI have a string variable (Size) that contains numbers and characters. I want to subtract number and …
How to define date from 2000 in StataDear all, I need to calculate age using date of birth (dob) and survey submission date (end_date). …
How to flag observations that have a certain charateristic in one round but do not have that characteristic in any of the subsequent rounds?Hi everyone, Please consider the following data Code: * Example generated by -dataex-. To install: …
Esttab with longtable optionI am exporting a regression table to LaTeX using the community contributed esttab command with longt…
Subscribe to:
Post Comments (Atom)
0 Response to Tabout and missing data
Post a Comment