Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: how keep row variables even if they are missing


From   Phil Clayton <[email protected]>
To   [email protected]
Subject   Re: st: how keep row variables even if they are missing
Date   Tue, 5 Apr 2011 17:01:19 +0930

-tabulate- also has a -missing- option so you can use this to generate frequency tables, and similarly you can use -tabulate, summarize() missing- for summary statistics

Phil

On 05/04/2011, at 2:37 AM, Nick Cox wrote:

> The issue I gather is that Stata omits observations ("row variables")
> from tables when values are missing.
> 
> ("drop" is the wrong word here.)
> 
> -tabstat- has an option -missing-. I don't know if that's enough for you.
> 
> You'd have to work much harder with -table- to get what you want, I think.
> 
> Nick
> 
> On Mon, Apr 4, 2011 at 4:48 PM, Abu Camara <[email protected]> wrote:
> 
>> I am generating about 60 tables once and I use the group format
>> in excel to format all the tables at once. But challenges come in because
>> stata will drop row variables when missing values exist everywhere.
>> 
>> Could someone help me with a way to keep all the row variables
>> even if they are missing everywhere (opposite of "concise" command?). I am
>> using both the
>> "table" and "tabstat"command of stata to run these tables.
>> 
>> For example tabulating variable "Country" and "Year". Stata will drop a country
>> like Somalia or Iraq because of missing data for all the years under study.
>> I want to keep the names of the countries even if they are missing so that all
>> my tables will have the same length and breadth (size).
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index