Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Re: collapse problem


From   "Nick Winter" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: collapse problem
Date   Wed, 11 Sep 2002 08:57:04 -0400

> "Riano, Alejandro" wrote:
> 
> > I'm collapsing the standard deviation for a set of 
> variables (monthly
> > frequency):
> >
> > collapse (sd) er rer, by(country_name year)
> >
> > but if for example one country doesn't have data for all 
> the year, i'm
> > getting a 0 instead of a missing value after doing the 
> collapse, do you know
> > how can i solve this ?

This was fixed in the Stata update of 02 August 2002, as discussed in
this clip from -help whatsnew-.  Type "update query" and follow the
directions to update.


----- update 02aug2002 ------------------------

1.  collapse would generate 0 for the standard deviation (sd) of a
variable that equaled missing value (.) in all observations even though
it would generate missing value for the mean.  collapse now generates
missing value for the standard deviation, too.

-Nick Winter
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index