本文介绍了R Stargazer报告系数,置信区间和精确的p值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行国家/地区固定效应"模型,该模型还包含一个虚拟变量.我正在使用Stargazer软件包,但似乎无法弄清楚如何报告置信区间和确切的p值.如果我运行模型:

I am running a Country Fixed Effects model further including a dummy variable.I am using the Stargazer package, but can not seem to figure out how to report both the confidence intervals and the exact p-values. If I run my model:

stargazer(dummy_CPP, title = "xx",align = TRUE,
          no.space = TRUE, ci = TRUE,
          report = ('vc*p'), single.row = TRUE)

只有p值在我的输出中.此外,由于我有30多个变量,因此即使我使用single.row = TRUE,整个表也无法放入一页,因为p值报告在系数下方.

Only the p-values are in my output. Furthermore, as I have 30+ variables, the whole table can not fit into 1 page, as the p-values are reported underneath the coefficients, even though I use single.row = TRUE.

推荐答案

来自 stargazer 文档;

report = 一个仅包含v"、c"、s"、t"、p"、*"元素的字符串,用于确定变量名(v"),系数("c"),标准误差/置信区间("s"),测试统计量("t")和p值("p")应在回归表中报告.

report = a character string containing only elements of "v", "c", "s","t", "p", "*" that determines whether, and in which order, variable names ("v"), coefficients ("c"), standard errors/confidence intervals ("s"), test statistics ("t") and p-values ("p") should be reported in regression tables.

因此要报告CI和p值,请同时包含字母"s"和"p".但我不知道如何将所有内容都放在一行上(命令 single.row 仅适用于标准错误/CI,但不适用于我认为的p值).

So to report CI and p values include both the letters "s" and "p". I don't know how to get it all on one line though (the command single.row only applies to standard errors/CI but not p values I think).

stargazer(dummy_CPP, title = "xx",align = TRUE,
          no.space = TRUE, ci = TRUE,
          report = ('vcsp'), single.row = TRUE)

这篇关于R Stargazer报告系数,置信区间和精确的p值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 05:44