0

我有一些想要导出到 LaTeX 的回归模型。我正在使用包“texreg”。最终输出为:

\begin{table}
\begin{center}
\begin{tabular}{l c c}
\hline
 & Model 1 & Model 2 \\
\hline
as.factor(treat)1               & $145227140331.44$    &                      \\
                               & $(2648642987059.38)$ &                      \\
as.factor(msj)1                &                      & $-647801609586.01$   \\
                               &                      & $(3435830264390.74)$ \\
as.factor(msj)2                &                      & $433277589458.84$    \\
                               &                      & $(3288915232361.39)$ \\
as.factor(msj)3                &                      & $-1691975577225.66$  \\
                               &                      & $(3293603457594.94)$ \\
as.factor(msj)4                &                      & $-843647941334.40$   \\
                               &                      & $(3359975197112.69)$ \\
as.factor(msj)5                &                      & $576301517588.01$    \\
                               &                      & $(3349253720672.64)$ \\
as.factor(msj)6                &                      & $3301581741709.62$   \\
                               &                      & $(3403672471154.21)$ \\
as.factor(msj)7                &                      & $17431285033.90$     \\
                               &                      & $(3695545300670.01)$ \\
\hline
Num. obs.                      & $1000$               & $1000$               \\
R$^2$ (full model)             & $0.02$               & $0.03$               \\
R$^2$ (proj model)             & $0.00$               & $0.00$               \\
Adj. R$^2$ (full model)        & $0.01$               & $0.01$               \\
Adj. R$^2$ (proj model)        & $-0.01$              & $-0.01$              \\
Num. groups: as.factor(strata) & $10$                 & $10$                 \\
\hline
\multicolumn{3}{l}{\scriptsize{$^{***}p<0.001$; $^{**}p<0.01$; $^{*}p<0.05$}}
\end{tabular}
\caption{Statistical models}
\label{table:coefficients}
\end{center}
\end{table}

我可以让它显示因变量的平均值,而不是显示 R 平方和调整后的 R 平方的乳胶输出吗?

4

0 回答 0