Statalist The Stata Listserver

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

st: Re: statsby with multiple variables

From   "Michael Blasnik" <>
To   <>
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" <>
To: <>
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:

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