Bayesian negative binomial GLMM
Random-intercept model for overdispersed counts with a negative binomial (NB2) response and log link, fitted by MCMC.
베이즈 음이항 일반화선형혼합모형 — 음이항(NB2) 반응과 로그 연결로 과대산포 빈도를 다루는 무선절편 모형을 MCMC로 적합합니다.
Runs Bayesian Hierarchical Model with: dist set to “negbin”.
기본 방법(Bayesian Hierarchical Model)에 다음 설정을 고정해 실행합니다: dist = negbin.
Counts of hospital admissions per ward are overdispersed and wards are nested in hospitals; how do I fit a Bayesian model?
병동별 입원 건수에 과대산포가 있고 병동이 병원에 속하는데, 베이즈 모형은 어떻게 적합하나요?
The response is negative binomial (NB2) with a log link and random intercepts for groups, fitted by MCMC, so overdispersion and clustering are both handled. Behind it is Bayesian Hierarchical Model with dist = negbin already set; checks and report are the same as for Bayesian Hierarchical Model.
When to use Bayesian negative binomial GLMM
- Counts vary more than Poisson within groups.
- You want posterior intervals for rate ratios and variance components.
When to use something else
- Counts show no overdispersion beyond the random effect; a Poisson model is simpler.
- You want to try other settings side by side; open Bayesian Hierarchical Model and set the options yourself.
What you still provide
- Data: a table (CSV or Excel) with an outcome variable, a grouping variable and predictor (feature) columns.
Assumptions and requirements
The same as for Bayesian Hierarchical Model:
- Group intercepts are exchangeable and normally distributed.
- Observations are independent within groups given the group effect.
- The outcome family (Gaussian, logistic or Poisson) fits the data.
- Sampler diagnostics show convergence and no divergences.
What the analysis reports
The output of Bayesian Hierarchical Model, with the preset shown in the settings:
- Posterior mean and credible interval of τ (and σ and ICC for Gaussian outcomes)
- Fixed-effect coefficients on the original scale
- Group effects with credible intervals and shrunken group means
- R-hat, effective sample size and divergence count
How this is validated
검증 근거
This variant runs the same engine as Bayesian Hierarchical Model with the settings above fixed, so the evidence is that method’s: automated run tests; no external reference comparison yet. No separate checks of this preset are claimed. Read the base method’s validation record.
이 설정 묶음은 Bayesian Hierarchical Model와 같은 엔진으로 돕니다. 검증 근거는 기본 방법의 것이며, 이 설정만 따로 검증했다고 주장하지 않습니다.
Other variants of Bayesian Hierarchical Model
- Bayesian Hierarchical Poisson Model
- Bayesian Hierarchical Model for Continuous Outcomes
- Bayesian Hierarchical Model with Half-Cauchy Prior
- Bayesian geometric GLMM
- Bayesian gamma GLMM
- Bayesian inverse Gaussian GLMM
- Bayesian exponential GLMM
- Bayesian probit random-intercept model
- Bayesian complementary log-log random-intercept model
- Bayesian crossed random-effects model
- Bayesian nested random-effects model
- Posterior predictive p-values
Run this variant
- Data you need
- a table (CSV or Excel) with an outcome variable, a grouping variable and predictor (feature) columns
- Price
- Same as Bayesian Hierarchical Model: 900 credits for one analysis up to 10,000 rows (complexity level 5); larger or wider data costs more. Optional methodologist review: 3600 credits.
- Checking
- Automated run tests; no external reference comparison yet, as recorded for Bayesian Hierarchical Model (see its checks)
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.