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
Nick Cox <[email protected]>
To
[email protected]
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 <[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/