[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
David Kantor <dkantor@jhu.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Taking averages, etc. |

Date |
Tue, 16 Dec 2003 18:16:54 -0500 |

For averages (-summarize-) and just about any similar measure or analytical procedure, Stata ignores the missing values -- as if the observations in question were not present. This happens automatically.

(This is different from an expression such as (a + b + c) / 3 , where a single missing value spoils the result.)

Note that for commands that take several variables together, they generally work on the set of observations having no missing values on all the variables under consideration. So, as you adjust the set of variables, the set of observations may shift -- depending on which variables have missing values on what observations.

I hope this helps.

At 05:25 PM 12/16/2003 -0500, Adrian de la Garza wrote:

Hello, everyone! Can anyone tell me if it's possible to tell Stata to ignore missing observations when computing averages, etc.? I think that if there is a missing value in the observations considered, the average computed would be then missing too... and I need it to intelligently choose how many observations to use depending on whether observations are available, etc. Thanks! Adrian

David Kantor Institute for Policy Studies Johns Hopkins University dkantor@jhu.edu 410-516-5404 * * 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/

**References**:**st: Taking averages, etc.***From:*"de la Garza, Adrian" <ADelagarza@imf.org>

- Prev by Date:
**st: Taking averages, etc.** - Next by Date:
**re: st: Taking averages, etc.** - Previous by thread:
**st: Taking averages, etc.** - Next by thread:
**st: RE: Taking averages, etc.** - Index(es):

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