[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: collapse problem
Alejandro Riano wrote:
> I'm collapsing the standard deviation for a set of variables
> collapse (sd) er rer, by(country_name year)
> but if for example one country doesn't have data for all the year,
> getting a 0 instead of a missing value after doing the collapse, do
> how can i solve this ?
but John Hennen could not reproduce this:
> Are you certain that there isn't at least one observation in the
> country for the year at issue? Here is a counter-example using the
> dataset, showing that, when the variable of interest (mpg) is
missing in a cell,
> collapse returns sd = ., not zero.
[ snip ]
The resolution of this lies in the fact that Stata 7 was updated
on 2 August 2002 to fix this bug. See -help whatsnew- in any
Stata updated since then.
I guess that Alejandro has not updated, but John has.
* For searches and help try: