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" <[email protected]>
To   <[email protected]>
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 
[email protected] 

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