R Stargazer - Manually Specify R^2 And Write to .tex

后端 未结 1 473
Happy的楠姐
Happy的楠姐 2021-01-14 00:33

I am using Stargazer to report the results from some models where I use robust standard errors. The process of calculating these and then feeding the models to Stargazer st

1条回答
  •  逝去的感伤
    2021-01-14 01:09

    One workaround is to save the output of stargazer in a variable, then write it to file afterwards:

    star = stargazer(fit1_robust, fit2_robust,
      add.lines = list(c("Adjusted $R^2$", fit1_r2, fit2_r2))
    )
    cat(star, sep = '\n', file = 'Test.tex')
    

    0 讨论(0)
提交回复
热议问题