r - 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
解决方案
推荐阅读
- c# - Rx.net 在可观察到的断开/错误上实现重试功能
- python - 计数级别在 Python 数据帧中的集群/组中出现的次数
- java - 如何使用 p7b 文件对 jar 进行签名
- spring-boot - 我不能在 IntelliJ 上使用调试:java.lang.NoSuchMethodError: 'org.slf4j.impl.StaticMDCBinder org.slf4j.impl.StaticMDCBinder.getSingleton()'
- python - psycopg2 将值作为列
- php - 如何使用 php-amqplib 从消费者回调中关闭 rabbitmq 连接
- docker-compose - 如何告诉 docker-compose 自动重启失败的容器
- redis - 使用 ReactiveRedis Spring Boot 配置 CacheManager
- postgresql - 数据库迁移 - PostgreSQL - 30TB - OnPrem 到 GCP(CloudSQL)
- react-native - 从 Firebase 存储博览会 cli 获取下载地址