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]

Re: st: Problem with mat2txt


From   Nick Cox <njcoxstata@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Problem with mat2txt
Date   Fri, 31 May 2013 00:49:46 +0100

The help for -mat2txt- (SSC) gives the syntax, which in your case should be

mat2txt, matrix(testme) saving(test)

Nick
njcoxstata@gmail.com

On 31 May 2013 00:23, Fitzgerald, Robert <bfitzgerald@rti.org> wrote:

> 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);
>
*
*   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