Skip to content

Commit 6cf55c5

Browse files
committed
Added data file for BPA\Ch.10\js_ms.stan
1 parent 438b8c5 commit 6cf55c5

File tree

5 files changed

+328
-1
lines changed

5 files changed

+328
-1
lines changed

ARM/Ch.17/latent_glm_17.7.stan

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ data {
1616
vector[N] z;
1717
}
1818
parameters {
19-
real<lower=0> sigma;
2019
real<lower=0> sigma_age;
2120
real<lower=0> sigma_edu;
2221
real<lower=0> sigma_state;
@@ -47,6 +46,12 @@ model {
4746
b_female ~ normal(0, 100);
4847
b_black ~ normal(0, 100);
4948
b_female_black ~ normal(0, 100);
49+
50+
sigma_age ~ normal(0, 10);
51+
sigma_edu ~ normal(0, 10);
52+
sigma_state ~ normal(0, 10);
53+
sigma_region ~ normal(0, 10);
54+
sigma_age_edu ~ normal(0, 10);
5055

5156
b_age ~ normal(0, sigma_age);
5257
b_edu ~ normal(0, sigma_edu);

ARM/Ch.17/multilevel_ordered_categorical_17.6.stan

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ model {
2424

2525
mu_c ~ normal(0, 1000);
2626
mu_log_s ~ normal(0, 100);
27+
28+
sigma_c ~ normal(0, 10);
29+
sigma_log_s ~ normal(0, 10);
2730

2831
for (i in 1:n_player) {
2932
C[i,1] ~ normal(mu_c[1], sigma_c[1]) T[0,C[i,2]];

ARM/Ch.17/multilevel_poisson_17.5.stan

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ model {
2626

2727
mu ~ normal(0, 100);
2828
mu_adj = mu + mean(b_eth) + mean(b_precint);
29+
30+
sigma_epsilon ~ normal(0, 10);
31+
sigma_eth ~ normal(0, 10);
32+
sigma_precint ~ normal(0, 10);
2933

3034
b_eth ~ normal(0, sigma_eth);
3135
b_eth_adj = b_eth - mean(b_eth);

ARM/Ch.17/robit_17.7.stan

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ model {
4848
b_female ~ normal(0, 100);
4949
b_black ~ normal(0, 100);
5050
b_female_black ~ normal(0, 100);
51+
52+
sigma_age ~ normal(0, 10);
53+
sigma_edu ~ normal(0, 10);
54+
sigma_state ~ normal(0, 10);
55+
sigma_region ~ normal(0, 10);
56+
sigma_age_edu ~ normal(0, 10);
5157

5258
b_age ~ normal(0, sigma_age);
5359
b_edu ~ normal(0, sigma_edu);

0 commit comments

Comments
 (0)