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 at the end of May, and its replacement, statalist.org is already up and running.


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

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


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how keep row variables even if they are missing
Date   Mon, 4 Apr 2011 18:07:15 +0100

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 <abucamara@gmail.com> 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/


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