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   "Rosy Reynolds" <[email protected]>
To   "statalist" <[email protected]>
Subject   Re: st: How do I save output from stphtest?
Date   Sun, 3 Jul 2005 10:29:49 +0100

Hi, Nfii
You will find the chi-square and degrees of freedom in r(chi2) and r(df)
after running stphtest. You can calculate the p-value from these by using -chi2tail-.
- return list - is useful after many commands to see what has been stored in
r(), and - ereturn list - is similarly useful after estimation commands to
see what has been stored in e().
Hope this helps.
Rosy Reynolds


Date: Sat, 2 Jul 2005 22:29:34 -0400
From: Nfii Ndikintum <[email protected]>
Subject: st: How do I save output from stphtest?

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.

Regards,
Nfii
*
*   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/

------------------------------

End of statalist-digest V4 #2022
********************************

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index