r - 将置信区间添加到 R 中的摘要输出
问题描述
我正在运行一个线性回归模型,使用逐步选择程序,并希望获得汇总表中的置信区间。我怎样才能做到这一点 ?目的是能够使用xtable
Latex 中的输出
step.model <- stepAIC(full.model,direction = "both",trace = FALSE)
summary(step.model)
如何才能做到这一点 ?
解决方案
Figured out the solution:
# add confidence interval to table
ci <- confint(step.model)
sum_step.model <- (cbind(Estimate = coef(sum_step.model), ci))
#print results to latex
xtable(sum_step.model)
推荐阅读
- javascript - 可以通过 HTTP 请求打开与私有存储库的连接吗?
- spring - Spring Boot 示例应用程序中的 Google Auth token invalid_token 错误
- qt - QML ListView`highlightFollowsCurrentItem`自动滚动被鼠标悬停中断
- windows - 为什么 dbgview 会删除之前的消息行?
- javascript - 如何遍历目录及其子目录中的 HTML 文件 webpack htmlPluginEntries?
- javascript - 使用 Web 加密 API 在 Java 和浏览器之间进行 RSA 解密失败
- appium - 在同一代码中处理 iOS 和 Android 自动化测试的最佳方法是什么?
- php - PHP 使用全局查找和替换清理 $_SERVER['REQUEST_URI'] 它有多安全?
- scrollbar - 缺少两个相邻文本框的选项卡上的垂直滚动条
- reactjs - 我可以使用 React 在 Select as defaultValue 中添加图像吗?