首页 > 解决方案 > BOX.TEST 的 Rmarkdown 输出以错误的方式打印

问题描述

我正在研究 R 降价程序。我有一个来自 Rmarkdown bookdown 的 R 脚本。我想打印盒子测试,因为它出现在 R 控制台中,但在我的 pdf 输出中。

这是我使用的代码

```{r echo=FALSE, comment=""}
fitresiduals
```

这是要出现在我的文档中的输出

   Ljung-Box test

data:  Residuals from Regression with ARIMA(0,1,1) errors
Q* = 1.1876, df = 3, p-value = 0.756

但是我的pdf中的输出是

c(‘Q*‘ = 1.18757785985944), c(df = 3), 0.755985169946901, Ljung-Box test, Residuals from Regression with ARIMA(0,1,1) errors

标签: rpdfr-markdownstatistical-test

解决方案


推荐阅读