From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | Re: st: Saved Results by Group |
Date | Tue, 06 Aug 2002 21:47:38 +0100 |
At 16:25 06/08/02 -0400, Dan Pregibon wrote:
Dear Statalisters,No, there isn't. You need to use the -statsby- command of official Stata to store the results of an analysis for multiple by-groups in a data set with 1 observation per by-group. See -help statsby- online or -[R] statsby- in the manuals.
Suppose I am summarizing survival data with the command "stsum, by(group)" and would like to store particular results of each group in a new variable I have generated. The stored result "r(p50)", for example, will give me the 50th percentile of the total set. Is there a stored result for the 50th percentile of just group 1 or group 2?
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |