Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: How do I save output from stphtest?

From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: How do I save output from stphtest?
Date   Sun, 03 Jul 2005 21:03:06 +0100

At 03:29 03/07/2005, Nfii Ndikintum wrote:
I am a novice in Stata. This is a great software, provides
me with a lot more tools than many other statistics packages.

I would like to save the output (chi-square and p-value)
from stphtest. How do I go about this? I am doing some
simulations and would need to output about 10000 of these
values to a data set. Please help! I have searched all over
and can not seem to find a solution to this.

I attmpted using the parmby command but the output that I
got was from the stcox model.
-parmby- only saves output from estimation commands (also known as -eclass- commands), which store the results in -e()- structures. As Rosy Reynolds says, -stphtest- is a -rclass- command, which stores its results in -r()- structures. In Stata, type

whelp ereturn

to find out about returned results for -eclass- commands, and type

whelp return

to find out about returned results for -rclass- commands.

Hope this helps.


Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
Division of Asthma, Allergy and Lung Biology
King's College London

5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]

Opinions expressed are those of the author, not the institution.

* For searches and help try:

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