stan - rstan 包中有函数 check_rhat() 吗?
问题描述
在下一页中,我找到了一个函数check_rhat()
。但是在 R 控制台中,即使使用rstan:::
.
所以,我在我的包中做了一个类似的函数来诊断 rhats,但是,如果存在一些函数来评估我想使用它的 rhat(如果它存在)。
https://betanalpha.github.io/assets/case_studies/divergences_and_bias.html
解决方案
该函数通过 进入 R 会话并在此处source("stan-utility.R")
定义。它不在rstan包中。
推荐阅读
- python - 为什么我可以打印到命令行但不能使用 docker 写入文本文件?
- java - 为什么我自己的 AtomicLong 比 JDK 中提供的要慢?
- javascript - 为什么在条件渲染中解析 Math.mod() 的错误?
- python - 有没有办法在包含字符串的对象数组上使用 numpy 字符串数组函数?
- react-native - 为什么在使用 Firebase 注册用户时,Android 和 IOS 设备模拟器之间存在差异?
- c++ - 在 std::list 中,std::distance(it.begin(), std::prev(it.end())) 是否等于 list.size()?
- javascript - 反应检查为空
- yii2 - 如何修复 Yii2 中的 akiraz2 博客 URL 规则错误
- java - 无法在另一个类中使用接受 Hashmap 作为参数的函数
- c++ - 使用移动语义在构造函数中初始化类成员