Hi, I am using the new dtable code in stata 18.
I need to obtain a descriptive table with the percentages by row. Is it possible with this code?
This is an example of the code and the output:
code:
As you see, the percentages on each column add up to one hundred.
I need a table that shows row percentages. That means: considering all men, what is the percentage of them that has caries and the percentage of them that has not caries? And the same for women.
Thanks!!
I need to obtain a descriptive table with the percentages by row. Is it possible with this code?
This is an example of the code and the output:
code:
Code:
dtable i.sex, by(cariesnt, missing nototals test)
Code:
------------------------------------------ Untreated caries presence No caries Caries Test ------------------------------------------ N 2,831 (51.3%) 2,689 (48.7%) Sex Men 909 (32.1%) 1,110 (41.3%) <0.001 Women 1,922 (67.9%) 1,579 (58.7%) ------------------------------------------
As you see, the percentages on each column add up to one hundred.
I need a table that shows row percentages. That means: considering all men, what is the percentage of them that has caries and the percentage of them that has not caries? And the same for women.
Thanks!!