brms

brms R包,用于贝叶斯广义多变量非线性多层次模型,使用Stan。「brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan」

Github星跟踪图

brms

Build
Status
Coverage
Status
CRAN
Version
Downloads

Overview

The brms package provides an interface to fit Bayesian generalized
(non-)linear multivariate multilevel models using Stan, which is a C++
package for performing full Bayesian inference (see
http://mc-stan.org/). The formula syntax is very similar to that of
the package lme4 to provide a familiar and simple interface for
performing regression analyses. A wide range of response distributions
are supported, allowing users to fit – among others – linear, robust
linear, count data, survival, response times, ordinal, zero-inflated,
and even self-defined mixture models all in a multilevel context.
Further modeling options include non-linear and smooth terms,
auto-correlation structures, censored data, missing value imputation,
and quite a few more. In addition, all parameters of the response
distribution can be predicted in order to perform distributional
regression. Multivariate models (i.e., models with multiple response
variables) can be fit, as well. Prior specifications are flexible and
explicitly encourage users to apply prior distributions that actually
reflect their beliefs. Model fit can easily be assessed and compared
with posterior predictive checks, cross-validation, and Bayes factors.

Resources

How to use brms

library(brms)

As a simple example, we use poisson regression to model the seizure
counts in epileptic patients to investigate whether the treatment
(represented by variable Trt) can reduce the seizure counts and
whether the effect of the treatment varies with the (standardized)
baseline number of seizures a person had before treatment (variable
zBase). As we have multiple observations per person, a group-level
intercept is incorporated to account for the resulting dependency in the
data.

fit1 <- brm(count ~ zAge + zBase * Trt + (1

主要指标

概览
名称与所有者paul-buerkner/brms
主编程语言R
编程语言R (语言数: 3)
平台Linux, Mac, Windows
许可证GNU General Public License v2.0
所有者活动
创建于2015-06-17 16:29:31
推送于2025-05-14 21:19:16
最后一次提交2025-05-15 00:19:16
发布数56
最新版本名称v2.22.0 (发布于 )
第一版名称v0.3.0 (发布于 )
用户参与
星数1.3k
关注者数39
派生数195
提交数5.6k
已启用问题?
问题数1547
打开的问题数125
拉请求数212
打开的拉请求数4
关闭的拉请求数22
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?