asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › Table1 reporting unique missing value frequencies
Tagged: descriptive statistics, missing values, tab, table, table1, template, unique missing values
-
AuthorPosts
-
Hello,
I’m using the template(table1) option for asdocx tab, and I’ve noticed that when I specify categorical variables with indicators (i.varname), the table generated includes statistics for all unique missing values (e.g. .d, .i, .s). I’m using a GSS dataset, which heavily utilizes unique mvs.
Also, is there a way to suppress p-values in tables?
Thank you.
The question on unique missing values seems incomplete to me. Do you want to report them or suppress them?
Hi Dr. Shah,
My mistake! I want to suppress the missing values.
I assumed this was an error because standard missing ” . ” are not reported in table1, only unique missing values. I’m not sure if asdocx tab supports the option listwise for deletion, but even when I add it the unique MVs are reported.
Please post your code to reproduce the error. For dropping the p-values column, you can use flexmat to modify the table created by asdocx. To know more about flexmat, you may like to read these entries.
Here is an example that deletes the p-value column.sysuse nlsw88 *Since the p-values are in the 5th column, drop column 5. flexmat dropcol, col(5) *Export the modified table with asdocx asdocx export
Table 1: DemographicsVariables single (n=804) married (n = 1442) Total (2246) race 1.40 (1.37 – 1.44) 1.21 (1.19 – 1.24) 1.28 (1.26 – 1.30) current grade completed 01 (0.04%) 1 (0.04%) 2 (0.09%) 42 (0.09%) 1 (0.04%) 3 (0.13%) 50 (0.00%) 1 (0.04%) 1 (0.04%) 68 (0.36%) 6 (0.27%) 14 (0.62%) 79 (0.40%) 10 (0.45%) 19 (0.85%) 815 (0.67%) 18 (0.80%) 33 (1.47%) 923 (1.02%) 32 (1.43%) 55 (2.45%) 1026 (1.16%) 58 (2.58%) 84 (3.74%) 1145 (2.01%) 78 (3.48%) 123 (5.48%) 12325 (14.48%) 618 (27.54%) 943 (42.02%) 1360 (2.67%) 116 (5.17%) 176 (7.84%) 1475 (3.34%) 112 (4.99%) 187 (8.33%) 1533 (1.47%) 59 (2.63%) 92 (4.10%) 1682 (3.65%) 170 (7.58%) 252 (11.23%) 1734 (1.52%) 72 (3.21%) 106 (4.72%) 1865 (2.90%) 89 (3.97%) 154 (6.86%) lives in south 0464 (20.66%) 840 (37.40%) 1304 (58.06%) 1340 (15.14%) 602 (26.80%) 942 (41.94%) college graduate not college grad616 (27.43%) 1098 (48.89%) 1714 (76.31%) college grad188 (8.37%) 344 (15.32%) 532 (23.69%) -
AuthorPosts
- You must be logged in to reply to this topic.