Get coefficients estimated by maximum likelihood into a stargazer table

后端 未结 3 1446
天涯浪人
天涯浪人 2021-02-02 05:06

Stargazer produces very nice latex tables for lm (and other) objects. Suppose I\'ve fit a model by maximum likelihood. I\'d like stargazer to produce a lm-like table for my es

3条回答
  •  失恋的感觉
    2021-02-02 05:39

    I don't know how committed you are to using stargazer, but you can try using the broom and the xtable packages, the problem is that it won't give you the standard errors for the optim model

    library(broom)
    library(xtable)
    xtable(tidy(model1))
    xtable(tidy(model2))
    

提交回复
热议问题