Skip to content

Commit

Permalink
removing the model spec error
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Morris committed Aug 3, 2020
1 parent 2985725 commit bf2182b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified scripts/model/poll_model_2020
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/model/poll_model_2020.stan
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ transformed parameters {
vector[N_state_polls] logit_pi_democrat_state;
vector[N_national_polls] logit_pi_democrat_national;
//*** construct parameters
mu_b[:,T] = cholesky_ss_cov_mu_b_T * raw_mu_b_T * mu_b_T_model_estimation_error + mu_b_prior;
mu_b[:,T] = cholesky_ss_cov_mu_b_T * raw_mu_b_T + mu_b_prior; // * mu_b_T_model_estimation_error
for (i in 1:(T-1)) mu_b[:, T - i] = cholesky_ss_cov_mu_b_walk * raw_mu_b[:, T - i] + mu_b[:, T + 1 - i];
national_mu_b_average = transpose(mu_b) * state_weights;
mu_c = raw_mu_c * sigma_c;
Expand Down
Binary file modified scripts/model/poll_model_2020_no_mode_adjustment
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/model/poll_model_2020_no_mode_adjustment.stan
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ transformed parameters {
vector[N_state_polls] logit_pi_democrat_state;
vector[N_national_polls] logit_pi_democrat_national;
//*** construct parameters
mu_b[:,T] = cholesky_ss_cov_mu_b_T * raw_mu_b_T * mu_b_T_model_estimation_error + mu_b_prior;
mu_b[:,T] = cholesky_ss_cov_mu_b_T * raw_mu_b_T + mu_b_prior; // * mu_b_T_model_estimation_error
for (i in 1:(T-1)) mu_b[:, T - i] = cholesky_ss_cov_mu_b_walk * raw_mu_b[:, T - i] + mu_b[:, T + 1 - i];
national_mu_b_average = transpose(mu_b) * state_weights;
mu_c = raw_mu_c * sigma_c;
Expand Down

0 comments on commit bf2182b

Please sign in to comment.