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
select pairs of cases with a distance between them <18 monthsHi everyone. I need to select the MRIs that are less than 18 months apart. Thank you very much ---…
Create a new indicatorHello everyone, I have this 30 year panel data with he name and identifier of executives. I also ha…
how to make new variable based on existing variable?Hello! I have this categorical variable "education" No education 0 High School 1 Collage 2 PhD 3 …
Problem with data managingHi, this is my first time posting here. My data has a problem. When importing my data, some lines ha…
Corresponding Dates with Business Calendar DatesHi I am working with the following data: Code: * Example generated by -dataex-. To install: ssc i…
Subscribe to:
Post Comments (Atom)
0 Response to Tabout and missing data
Post a Comment