Statalist The Stata Listserver


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

RE: st: Re: statsby with multiple variables


From   "Olga Gorbachev Melloni" <olga_gorbachev@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: Re: statsby with multiple variables
Date   Mon, 17 Jul 2006 12:24:45 -0400

thank you, i'll try collapse option



Olga Gorbachev Melloni
Ph.D. student in Economics at Columbia University
(212)866-6091
502 W122 Street, apt. 62
NY, NY 10027





From: "Michael Blasnik" <michael.blasnik@verizon.net>
Reply-To: statalist@hsphsun2.harvard.edu
To: <statalist@hsphsun2.harvard.edu>
Subject: st: Re: statsby with multiple variables
Date: Mon, 17 Jul 2006 12:23:08 -0400

-summarize- with multiple variables only stores the results for the last variable. You may want to try using -collapse- instead or else writing your own ado to return the results you want -statsby- to pick up. If you go the -collapse- route and don't want to lose your current dataset in memory, you can use a -preserve-, -collapse-, -save-, -restore- sequence.

Michael Blasnik

----- Original Message ----- From: "Olga Gorbachev Melloni" <olga_gorbachev@hotmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, July 17, 2006 11:46 AM
Subject: st: statsby with multiple variables



I was wondering if you knew a way to use statsby in Stata9 or stata8 to save summary statistics for multiple variables. So far i've been able to use it only on one variable at a time, which is silly, since it save the results from summary command. Any ideas?
*
*   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/

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