Skip to main content

Questions tagged [negative-binomial-distribution]

A discrete, univariate distribution modelling the number of ${\rm Bernoulli}(p)$ trial successes until a specified number of failures occur.

5 votes
2 answers
336 views

Standard negative binomial regression when counts are mainly zeros?

This question must have been asked many times before but I can't find an answer. I'm getting very confused about when to use a zero-inflated negative binomial regression vs standard negative binomial ...
Picapica's user avatar
  • 493
4 votes
1 answer
150 views

When to choose GAM over GLMM and how to include random effect into GAM

This is a follow-up question to this question. Here is a description of the dataset: the outcome variable is the number of contacts per participant for two periods before lockdown and under lockdown. ...
Chao's user avatar
  • 73
0 votes
0 answers
10 views

Covariance of multivariate negative binomial with random effects

I am fitting a negative binomial-2 regression model where there is a multivariate normal random effects term. I would like to find an equation for the covariance of two outcomes. In "the ...
Nick Link's user avatar
4 votes
2 answers
51 views

$\min\{X,Y\}$; where $X,Y$ are geometric random variables

Does $\min\{X,Y\}$ follow a geometric distribution? $X \sim BN(1,p); Y \sim BN(1,q)$ independent $$P(\min\{X,Y \}=k)=P( \min\{X,Y\} \geq k)-P(\min\{X,Y \} \geq k+1)=\sum_{n=k}^{\infty}(1-p)^{n-1}p\...
AaaBach's user avatar
  • 143
1 vote
1 answer
63 views

Relating animal sightings with land cover - poisson, negative binomial, zero inflated and then LOST

I have a number of sightings of animals in a location (an island). The sightings are opportunistic (corpses people stumble upon) and happen in different land covers. I am supposed to investigate if ...
Miren Sanov's user avatar
0 votes
0 answers
28 views

Am I using the right method to model my zero-inflated data?

I have a dataset of workplace permits, sample size n=3000. The data is collected between 2012-2020, so if a permit was active some time between 2012-2020, I included it in my analyses. My exposure of ...
user9410's user avatar
0 votes
1 answer
22 views

Underdispersion handled with negative binomial distribution? [duplicate]

To get a more flexible model than Poisson regression, one can choose the negative binomial distribution instead for modeling with $E[y] = \mu$ and $Var(y) = \mu + \frac{1}{ \theta} \mu^2$. As a ...
Marlon Brando's user avatar
1 vote
2 answers
41 views

Calculate combined confidence interval of two variables in a negative binomial model (in R) [closed]

I have a multivariable negative binomial model in R for which I want to combine two variables: Variable 1: binary variable (no/yes) Variable 2: continuous variable (0-3) I want to calculate ...
femkev's user avatar
  • 11
2 votes
1 answer
57 views

Negative Binomial Regression for repeated measures ,daily for one week

I have a dataset of 2,000 subjects, each providing daily social contact data for one week (14,000 observations = 2000 subjects * 7 days). I aim to describe the number of contacts using variables such ...
Jong-Hoon Kim's user avatar
0 votes
0 answers
23 views

Construction of Dirichlet multinomial from independent negative binomials

I have a dataset with ISO3 country code, Year (from 2010 to 2019), Causes of death category (24 categories in total) and number of deaths. The sum of deaths across causes is fixed. My goal is to ...
WellWellWell's user avatar
7 votes
3 answers
243 views

biased MLEs in negative binomial models

I found the maximum likelihood parameters of negative binomial models are biased. An example code is provided below. Is this normal? Are there ways to obtain unbiased estimates? ...
quibble's user avatar
  • 1,694
1 vote
1 answer
53 views

Visualizing restricted cubic splines in glm.nb

I am trying to visualize the relationship between a continuous variable ("marker") and a count variable ("count") using a negative binomial regression with a restricted cubic ...
Fabian's user avatar
  • 61
0 votes
0 answers
30 views

Low VIF in conditional model but high in zero-inflated model

I am using glm ZINB to make models that predict abundance of frogs based on observations from 57 sites. I used the check_model function from the performance package and it shows that the best model ...
Marco Lassandro's user avatar
2 votes
0 answers
43 views

Are there known bounds for the median of a negative binomial distribution based on its parameters?

This seems like an innocent enough question to me, but I could not find a satisfactory answer when I did some digging. The binomial distribution has a closed form median and the Poisson distribution ...
ricewhitlam's user avatar
0 votes
0 answers
15 views

Am I Doing Things Right? / negative binomial test

I have a dataset consisting of social media comments about a particular context from 1999 to 2024.The topic titles of the comments were annotated into two categorial variables = 0 and 1. I am aiming ...
berk's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
65