Making a Table 1

Making a Table 1

by Faby -
Number of replies: 3

Hi, 

I'm have a difficult time constructing a basic Table 1 for my final project. I've tried various commands- table, tabstat.. but none of them seem to be working. I have one variable that I would like to generate the columns with and multiple variables I would like to display as the characteristics of my sample. 

Is there a way to do this all at once on Stata? Or do I just make my table on word and fill it in using a basic crosstab of each variable? 

Thank you in advance, 

Faby 

In reply to Faby

Re: Making a Table 1

by Kristen -

Hi Faby, 

Did you try using the "bysort varname:" prefix for table or tabstat?

check out the syntax for tabstat we used in lecture 7 for our table 1. 

You will have to copy this into excel and may need to restructure the columns into rows

In reply to Kristen

Re: Making a Table 1

by Margaret -

For the final project, are we allowed to just manually type the values into Excel? For instance, I'm not sure how to incorporate my chi-square p-values for some of the variables into the tabstat command. 

Thank you!

-Margaret

In reply to Margaret

Re: Making a Table 1

by Kristen -

Yes! Just remember to show the commands for how you generated the chi-squared statistics and p-values in your .do file.