如何显示摘要结果?

问题描述 投票:0回答:1

如何导出汇总结果,我无法使用stargazer。

stargazer(summary(my_plm_pooling_1, vcov = function(x) vcovHC(x)), type='text')

结果: 暗名错误 (x) <- dn : comprimento de 'dimnames' [2] não é igual ao tamanho do array

r
1个回答
0
投票

以前对我有用的是函数

capture_output

事情就像这样

out_summary <- summary(my_plm_pooling_1, vcov = function(x) vcovHC(x))
capture.output(out_summary, file = 'output_summary.txt')
© www.soinside.com 2019 - 2024. All rights reserved.