Rstan 是 Stan 在 R 语言中的官方接口/扩展包名称,用于在 R 环境里编写 Stan 模型并进行贝叶斯推断(常见为 MCMC 采样、参数估计与后验分析)。在统计学与数据科学语境中,它通常指“用 R 调用 Stan 来拟合贝叶斯模型”。
/ˈɑːr stæn/
I fit the Bayesian model in R using rstan.
我在 R 里用 rstan 拟合这个贝叶斯模型。
After checking convergence diagnostics, she used rstan to sample from the posterior and compare several hierarchical models.
在检查收敛诊断之后,她用 rstan 从后验分布中采样,并比较了几个分层模型。
Rstan 由 R(统计编程语言)+ Stan(贝叶斯建模与推断平台名称)组合而成,表示“Stan 的 R 接口”。其中 “Stan” 常被解释为对统计学家 Stanislaw Ulam 的致敬(Stan 项目社区中常见的说法)。