Skip to content

Commit e7697bf

Browse files
author
Bob Carpenter
committed
added priors to neg binomial example so it converges
1 parent a799aea commit e7697bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

basic_estimators/negative_binomial.stan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ parameters {
77
real<lower=0> beta;
88
}
99
model {
10+
alpha ~ cauchy(0,10);
11+
beta ~ cauchy(0,10);
1012
for (i in 1:N)
1113
y[i] ~ neg_binomial(alpha, beta);
1214
}

0 commit comments

Comments
 (0)