使用寻星器在Rmarkdown投影仪中绘制表格

时间:2018-06-20 17:52:50

标签: r r-markdown

我正在尝试在我的Beamer rmarkdown演示文稿中绘制回归摘要。使用观星功能,我做到了

```{r, echo = T , comment =  "" , message=FALSE, warning=FALSE }
regra_taylor_0 <- dynlm(selic ~ lag(selic,-1) + desvio + hiato, data=data_estimacao_ts)

```

```{r, echo = F , comment =  "" , message=FALSE, warning=FALSE}

stargazer(regra_taylor_0 )


```

但是预设的结果是这样的

% Table created by stargazer v.5.2.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: qua, jun 20, 2018 - 14:47:05
\begin{table}[!htbp] \centering
\caption{}
\label{}
\begin{tabular}{@{\extracolsep{5pt}}lc}
\\[-1.8ex]\hline
\hline \\[-1.8ex]
& \multicolumn{1}{c}{\textit{Dependent variable:}} \\
\cline{2-2}
\\[-1.8ex] & selic \\
\hline \\[-1.8ex]
lag(selic, -1) & 0.962$^{***}$ \\
& (0.036) \\
& \\

请帮助

1 个答案:

答案 0 :(得分:1)

这是一个最小的示例,演示了如何获取所需的观星者输出以及如何删除观星者注释消息:

ID;DAT;AMT;LASTVALUE2   -After Last Value
A;Mar 1, 2018;130;Mar 1, 2018
A;Feb 1, 2018;110;Jan 1, 2018
A;Jan 1, 2018;110;Jan 1, 2018
A;Nov 1, 2017;140;Nov 1, 2017
B;Jun 1, 2018;110;Apr 1, 2018
B;May 1, 2018;110;Apr 1, 2018
B;Apr 1, 2018;110;Apr 1, 2018
B;Mar 1, 2018;130;Mar 1, 2018
ID;DAT;AMT;PREV_DIFF_VALUE -After Lag
A;Nov 1, 2017;140;?
A;Jan 1, 2018;110;Nov 1, 2017
A;Feb 1, 2018;110;Jan 1, 2018
A;Mar 1, 2018;130;Feb 1, 2018
B;Mar 1, 2018;130;?
B;Apr 1, 2018;110;Mar 1, 2018
B;May 1, 2018;110;Apr 1, 2018
B;Jun 1, 2018;110;May 1, 2018