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