rstanarm 是 R 语言中的一个开源软件包,用于用 Stan 作为计算引擎来拟合常见的贝叶斯回归模型(如线性回归、逻辑回归、广义线性模型、混合效应模型等),强调“像用传统回归函数一样”进行贝叶斯建模。
/ˌɑːr stæn ˈɑːrm/
rstanarm 由三部分构成:R(统计编程语言)+ Stan(贝叶斯推断的概率编程平台)+ arm(常被理解为 applied regression modeling,即“应用回归建模”)。整体含义是“在 R 中用 Stan 来做(应用)回归建模”的工具名。
I fitted a logistic regression using rstanarm.
我用 rstanarm 拟合了一个逻辑回归模型。
To quantify uncertainty, the team used rstanarm to estimate a Bayesian multilevel model with informative priors.
为了量化不确定性,团队使用 rstanarm 在信息性先验下估计了一个贝叶斯多层(分层)模型。