Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: st: question about tabstat and table


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: question about tabstat and table
Date   Thu, 26 Mar 2009 14:54:44 +0100

<> 


Victor may also benefit from Nick`s tutorial
http://www.stata-journal.com/sjpdf.html?articlenum=pr0010
which is free for everybody to view :-)



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Jeph Herrin
Gesendet: Donnerstag, 26. März 2009 14:53
An: [email protected]
Betreff: Re: st: question about tabstat and table

try

   table language study, c(mean soap)

hth,
Jeph


Victor M. Enciso M. wrote:
> Dear all,
> 
> I have three vars: soap usage, language and study
> language and study can only take two values.
> 
> If I want to get the mean of soap usage by language or study I can use 
> tabstat
> 
> tabstat soap usage, by(study)
> 
> or if I want a two way table of study and language:
> 
> table study language
> 
> What I want, and don't know how to get is a two way table of study and 
> language but instead of having the counts as result I want the mean of 
> soap usage.
> 
> Obviously, stata doesn't accept
> 
> tabstat soap usage, by(study language)
> 
> So, any suggestions?
> 
> thank you.
> 
> 
> 
*
*   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/


*
*   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/



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