Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Problem with mat2txt


From   "Fitzgerald, Robert" <bfitzgerald@rti.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Problem with mat2txt
Date   Thu, 30 May 2013 19:23:34 -0400

I am trying to output the results of svy: tabulate to a textfile using
the mat2txt user-written procedure (SSC).

testvar has a range of 0-60 and the results are the simple percentage of
cases with each value (i.e., a frequency distribution).

My commands:
svy: tabulate testvar
mat testme=e(b)


Stata returns:

mat list testme
{returns testme[1,61] and the individual cell entries, not shown}

. mat2txt testme, saving(test)
varlist not allowed
r(101);

Suggestions appreciated.

Thanks.

Bob



Robert Fitzgerald
Senior Research Associate
Education Studies Division
RTI International, Inc.
2150 Shattuck Avenue Suite 800
Berkeley, CA 94704
(510) 665-8203

www.rti.org




*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index