Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: different samples summary table

Subject   st: different samples summary table
Date   Fri, 22 Feb 2013 13:16:36 +0100

Dear statalist users,

I am looking for a convenient way to do the following:

1. I start of with a dataset that has about 40000 individual observation.
2. I exclude about 10000 individuals because they are outside the age bracket that I want to consider
3. I exclude another 10000 individuals because they have missing values in some of the key covariates that I want to control for in a regression
4. My final esimtation sample has thus 20000 observations.

There are some key variables, lets call them "income" and "height" and I want to see how the means of these variables change throughout my steps 1-4.

Preferably, this should be displayed in a table that has 4 rows (with the first row showing the mean values of the initial data, second row mean values of individuals outside the age bracket, third row shows mean values of individuals with missing covariates, fourth row showing mean values of final estimation sample). Moreover, those rows should be in a wide format (i.e. from left to right), provide the number of observation affected and the table should be either in Excel or Tex format.

What ways are there to produce such a table?

Many thanks

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index