RSS syndicated content from Statalist, a discussion listserv generated by users of StataCorp Stata statistical analysis software. Subscribe to the RSS feed using the links provided in the sidebar. You must join the listserv in order to respond to, or add, new posts. For more information on Statalist, click on the 'Statalist FAQ' link in the sidebar.

Tuesday, February 28, 2006

st: Re: Writing output to a file

I am using permute on a Kruskal-Wallis test;
permute var z=r(chi2_adj), reps(10000) nodots nowarn: kwallis var if
class==6|class==7,by(class)
and I can obtain the probability from:

.matrix list r(p)
symmetric r(p)[1,1]
z
y1 .8759

I would like to write this value to a file for subsequent processing but I
am unable to display the matrix element:
. display r(p)[1,1]
invalid syntax
r(198);
Could somebody point me in the correct direction for displaying matrix
elements.
Thank you.
Paul

_________________________________________________________________
Are you using the latest version of MSN Messenger? Download MSN Messenger
7.5 today! http://messenger.msn.co.uk