First time I actively use the forum, so please excuse me if You need further informations to help me with the problem.
I'm using the putexcel function for the first time, and I can't get the function to export the row- and columnames with the matrix.
First, I've successfully done a regression in STATA. Now the regression variables is stored in the matrix: r(table).
E.g.
Clearly the matrix has both rownames and columnames, now if I try to use the simple syntax:
I get the error, apparently telling me that it has no names. As a side note, it has no issue exporting the matrix without the names.
I have no clue what to do here other than start to hard code the variable names, but I'm gonna do a huge load of regressions which I need to export, so working around that would save me alot of work. Any help would be much appreciated.
I'm using the putexcel function for the first time, and I can't get the function to export the row- and columnames with the matrix.
First, I've successfully done a regression in STATA. Now the regression variables is stored in the matrix: r(table).
E.g.
Code:
. matrix list r(table) r(table)[9,2] X3 _cons b 1.0099472 .00092736 se .27275243 .02402299 t 3.7027984 .03860316 pvalue .02078448 .97105662 ll .2526651 -.06577115 ul 1.7672294 .06762588 df 4 4 crit 2.7764451 2.7764451 eform 0 0
Code:
. putexcel A1=matrix(r(table), names) names not found r(111);
I have no clue what to do here other than start to hard code the variable names, but I'm gonna do a huge load of regressions which I need to export, so working around that would save me alot of work. Any help would be much appreciated.
Comment