Skip to content

Commit 5d746e5

Browse files
committed
updating tests for models/bugs_examples/vol2/endo/endo1, endo2, endo3
1 parent b40ec27 commit 5d746e5

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
beta <- 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
beta <- 0
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
beta <- 0
2+
beta0 <- c(0,0,0,0,0,0,0,0,0,0,
3+
0,0,0,0,0,0,0,0,0,0,
4+
0,0,0,0,0,0,0,0,0,0,
5+
0,0,0,0,0,0,0,0,0,0,
6+
0,0,0,0,0,0,0,0,0,0,
7+
0,0,0,0,0,0,0,0,0,0,
8+
0,0,0,0,0,0,0,0,0,0,
9+
0,0,0,0,0,0,0,0,0,0,
10+
0,0,0,0,0,0,0,0,0,0,
11+
0,0,0,0,0,0,0,0,0,0,
12+
0,0,0,0,0,0,0,0,0,0,
13+
0,0,0,0,0,0,0,0,0,0,
14+
0,0,0,0,0,0,0,0,0,0,
15+
0,0,0,0,0,0,0,0,0,0,
16+
0,0,0,0,0,0,0,0,0,0,
17+
0,0,0,0,0,0,0,0,0,0,
18+
0,0,0,0,0,0,0,0,0,0,
19+
0,0,0,0,0,0,0,0,0,0,
20+
0,0,0)

bugs_examples/vol2/endo/endo3.stan

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ parameters {
4949
model {
5050
# METHOD 3 fit standard Poisson regressions relative to baseline
5151
beta ~ normal(0, 1000);
52-
for (i in 1:I) {
53-
beta0[i] ~ normal(0, 1000);
54-
for (j in 1:J) Y[i, j] ~ poisson(exp(beta0[i] + beta * est[i, j]));
55-
}
52+
beta0 ~ normal(0, 1000);
53+
for (i in 1:I)
54+
for (j in 1:J)
55+
Y[i, j] ~ poisson_log(beta0[i] + beta * est[i, j]);
5656
}

0 commit comments

Comments
 (0)