Hello, I'm writing to you to see if you can help me out with the ado I'm programming.
I want to export tables with regression outputs to Excel, reporting my coefficients and the significance, pretty much like outreg2 does. I'm not using outreg2 because it doesn't let you save your results to a sheet or cell, and erases the format.
To do this, currently I'm saving the coefficients and p-values in a matrix with eret display, within a loop for all my models. Then, this matrix is the input to my command, I pass my matrix to the database, convert the variables (coefficients) to strings and add the stars to the coefficients, to finally export my results with putexcel.
The command works, but generating the matrix with eret display is a bit tedious, so I'm trying to do it in a similar way to outreg2: I want to store my reggresion's results with estimates store, then call my command in a way like this:
reg ...
est stores m1
reg ...
est stores m2
mycommand [m1 m2], options
So finally, my question is: How can I access and manipulate the estimations that are stored with my ado? I tried to read the outreg2 and estout codes but they are very complicated, and the documents about estimates and _estimates where not very helpful.
Thanks in advance for your answers.
Greetings,
Nicolás.
I want to export tables with regression outputs to Excel, reporting my coefficients and the significance, pretty much like outreg2 does. I'm not using outreg2 because it doesn't let you save your results to a sheet or cell, and erases the format.
To do this, currently I'm saving the coefficients and p-values in a matrix with eret display, within a loop for all my models. Then, this matrix is the input to my command, I pass my matrix to the database, convert the variables (coefficients) to strings and add the stars to the coefficients, to finally export my results with putexcel.
The command works, but generating the matrix with eret display is a bit tedious, so I'm trying to do it in a similar way to outreg2: I want to store my reggresion's results with estimates store, then call my command in a way like this:
reg ...
est stores m1
reg ...
est stores m2
mycommand [m1 m2], options
So finally, my question is: How can I access and manipulate the estimations that are stored with my ado? I tried to read the outreg2 and estout codes but they are very complicated, and the documents about estimates and _estimates where not very helpful.
Thanks in advance for your answers.
Greetings,
Nicolás.
Comment