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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Question on results export


From   Narasimhan Sowmyanarayanan <narasimhan.sowmyanarayanan@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Question on results export
Date   Mon, 11 Oct 2010 22:01:46 -0400

Thanks for the email. I appreciate it. You are right that I defined
the matrix. I think I missed it when i was typing. here is the
accurate command list.

sysuse auto
regress mpg weight foreign
matrix v = e(V)
svmat v , names(matcol)
outsheet v* using c:\myfile.csv, comma replace

the same sequence does not work with xtdpdsys. I did the following

xtdpdsys (command)
matrix v = e(V)
svmat v, names(matcol)

I get the following error:

* invalid syntax
r(198); *

I would like to use the exported file for other processing. i tried
the command but it just gives the vce matrix overall.


Thanks.

On Mon, Oct 11, 2010 at 9:40 PM, Austin Nichols <austinnichols@gmail.com> wrote:
> Narasimhan Sowmyanarayanan <narasimhan.sowmyanarayanan@gmail.com> :
> The commands you show would not run after a regression either--I am
> guessing you have left out a line defining a matrix v.  But perhaps
> the lag operators interfere with the name creation you have requested
> (type -mat li v- to see the column names).  Why do you want to do
> this?  There is almost surely a better solution than -svmat- followed
> by -outsheet-.
>
> On Mon, Oct 11, 2010 at 9:26 PM, Narasimhan Sowmyanarayanan
> <narasimhan.sowmyanarayanan@gmail.com> wrote:
>> I am trying to export a vce matrix in stata after the xtdpdsys
>> command. using the following sequence
>>
>> xtdpdsys (commands)
>> svmat v , names(matcol)
>> outsheet v* using c:\myfile.csv, comma replace
>>
>> The columns of my vce matrix dont get exported to a csv. However, when
>> I try the same command after a regress command, it works. I was
>> wondering if there is a specific reason ? Any insight will be highly
>> appreciated.
>>
>> Narasimhan
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

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


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