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

st: RE: matrix of variable averages


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: matrix of variable averages
Date   Tue, 25 Nov 2003 12:16:09 -0000

. tabstat experience education children, s(mean) save
. matrix mean = r(StatTot)' 
. matrix li mean 

Note the transpose mark. 

Nick 
n.j.cox@durham.ac.uk 

Mohamad Khalid Dimaporo
 
> Im a beginner with stata and cant find a simple method to 
> create a (n x 1) 
> matrix of my variable averages. For example, what command 
> do I type to get a 
> 3 x 1 matrix of the averages of experience education children.

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index