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

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: calculating statistics for multiple variables |

Date |
Fri, 22 Aug 2008 16:51:01 +0100 |

Much depends on the etc. but you can get many statistics as summaries of matrices via Mata very easily, and many more with some programming. That said, if you are doing this even once, a -reshape- really is a good idea. Nick n.j.cox@durham.ac.uk Jon Schwabish Does anyone know of a quick way of calculating sample statistics for multiple variables without reshaping the data? For example, if I have three variables (columns), how do I calculate means, standard deviations, etc without reshaping the data into one variable (or, obviously, doing the calculations by hand)? For example, calculate the standard deviation of v1 and v2, by treating them as one variable. Thus, treat v1 v2 1 2 2 4 3 6 4 8 as v1 1 2 3 4 2 4 6 8 (instead of calculating it by its parts). * * 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/

**References**:**st: calculating statistics for multiple variables***From:*Jon Schwabish <jschwabi@yahoo.com>

- Prev by Date:
**RE: st: RE: A query about min in stata** - Next by Date:
**Re: st: A query about min in stata** - Previous by thread:
**st: RE: calculating statistics for multiple variables** - Next by thread:
**Re: st: calculating statistics for multiple variables** - Index(es):

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