m <- capture.output(stargazer(lm_enroll,lm_grades,lm_score,
digits = 3,
header = FALSE,
type = "html",
se = rob_se,
title = "Linear Panel Regression Model",
model.numbers = FALSE)
#stargazer () function will automatically output, the output text captured by capture.output ()
IRdisplay::display_html(paste("<center>","",m,"","</center>"))
这会导致使用 Opera 和 Chrome 都没有图像。我在 R 中使用 jupyter 笔记本和 conda。有什么解决方法可以使这项工作正常进行吗? lm_* 是线性回归模型,stargazer 会生成正确的 html 输出,然后错误出现在最后一行。
library(IRdisplay) #the package that you need
display_html(toString(m))
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)