Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Problem with mat2txt


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
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
[email protected]

On 31 May 2013 00:23, Fitzgerald, Robert <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index