I an new to STATA. I am trying to produce output tables from a survey. I am trying to run this code:
I can't get the column percent and confidence interval bounds in the same statement so I had to break it up and put the tables side by side.
I am trying to put the chi square statistics as a column at the end of the table instead of rows below, and I want to drop the total column from the first statement and first column from the second statement.
I keep getting the following two errors:
option dropc() not allowed
option stpos() not allowed
What am I doing wrong.
Thanks for all the help.
Code:
tabout age_cat1 female hem_type using test.xls, replace style(xlsx) c( col) svy pop f(2) ptotal(none) percent font(bold) dropc(5) h1(Table 1. Estimated Descriptive Statistics of Patient Demographics and Clinical Characteristics after Intracerebral Hemorrhage NIS 2015Q4-2017) tabout age_cat1 female hem_type using test.xls, append style(xlsx) c( freq lb ub) svy pop stats(chi2) stpos(col) ptotal(none) dropc(1) location (2 5)
I am trying to put the chi square statistics as a column at the end of the table instead of rows below, and I want to drop the total column from the first statement and first column from the second statement.
I keep getting the following two errors:
option dropc() not allowed
option stpos() not allowed
What am I doing wrong.
Thanks for all the help.
Comment