sergiocorreia / ivreghdfe

Run IV/2SLS with many levels of fixed effects (i.e. ivreg2+reghdfe)
MIT License
77 stars 27 forks source link

Cannot access r(table) #45

Closed bojeryd91 closed 1 year ago

bojeryd91 commented 2 years ago

I suspect that the use of mata: _coef_table() on line 2541 isn't working as intended since I cannot access r(table) after estimating my model https://github.com/sergiocorreia/ivreghdfe/blob/9681fb8398493c1d4fa0fca275219d688a4570b3/src/ivreghdfe.ado#L2541

sergiocorreia commented 2 years ago

Hi Jesper,

Sorry for the late reply, I was out on leave. What version of ivreghdfe are you using, and what type of model are you running?

On my end, the command seems to work fine:

sysuse auto
ivreghdfe price weight (length=gear), a(turn)
return list
matrix t = r(table)
matrix list t
bojeryd91 commented 1 year ago

Hi Sergio,

Thanks for getting back to me. I am also traveling and will have to check this once I'm back. I had the issue on a server at a central bank where I intern over the summer.

The model is of that type but uses the cluster option too. Other than that, your code would be an MWE for me except that I wouldn't have used "return list".

I should've have noted the version before filing the bug... Anyhow, I'll write you as soon as I am back in the office.

Thanks, Jesper

On Wed, Jul 6, 2022 at 6:15 AM Sergio Correia @.***> wrote:

Hi Jesper,

Sorry for the late reply, I was out on leave. What version of ivreghdfe are you using, and what type of model are you running?

On my end, the command seems to work fine:

sysuse auto ivreghdfe price weight (length=gear), a(turn) return list matrix t = r(table) matrix list t

— Reply to this email directly, view it on GitHub https://github.com/sergiocorreia/ivreghdfe/issues/45#issuecomment-1175761414, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGRFDBYYATGD7KJGJBKY2PDVSUB5HANCNFSM5ZMP54KA . You are receiving this because you authored the thread.Message ID: @.***>

bojeryd91 commented 1 year ago

Hi again Sergio,

It turns out we are running the first version of ivreghdfe (even though it was added in early 2022). I'll contact the server support with admin rights to update commands. Thanks for taking the time.