1
我想通过使用以下注释得到回归结果的乳胶表;R markdown“texreg”
Analysis1 <- glm(y~x, data=data1, family=quasibinomial(link="logit"))
summary(Analysis1)
texreg(list(Analysis1),dcolumn = TRUE, booktabs = TRUE,
use.packages = TRUE, label = "tab:1",
caption = "Regression Estimation Results",float.pos = "hb")
但是,这个“texreg”命令给出原始输出而不是干净的表格;
\begin{table}[ht]
\centering
\begin{tabular}{rrrrr}
\hline
& Estimate & Std. Error & t value & Pr($>$$|$t$|$) \\
\hline
(Intercept) & 0.7686 & 0.0125 & 61.37 & 0.0000 \\
x & -0.0166 & 0.0069 & -2.41 & 0.0170 \\
\hline
\end{tabular}
\end{table}
请问我可以通过在R中使用texreg命令获得干净的回归结果表吗?