-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question about y_pred in model bart_ewmv #159
Comments
Could you explain which If you are asking about |
I am asking about the trial-level posterior predictive simulations for (l in 1:(pumps[j, k] + 1 - explosion[j, k])) {
// u_gain always equals r ^ rho.
u_loss = (l - 1);
u_pump = (1 - p_burst) * u_gain - lambda[j] * p_burst * u_loss +
rho[j] * p_burst * (1 - p_burst) * (u_gain + lambda[j] * u_loss)^2;
// u_stop always equals 0.
delta_u = u_pump - u_stop;
log_lik[j] += bernoulli_logit_lpmf(d[j, k, l] | tau[j] * delta_u);
y_pred[j, k, l] = bernoulli_logit_rng(tau[j] * delta_u);
} In the above code block, |
|
|
|
I feel confused about how the simulation score for each participant is calculated. How can we determine whether the balloon exploded in the simulated data when original pump limit for each balloon is not given?
In bart_ewmv.stan, the decision for pumping or not-pumping a balloon on trial k for pump l is simulated, but why the range of k is
[1, pumps[j, k] + 1 - explosion[j, k]
? And if the simulated decision of trial k is[1, 1, 1, 0, 1, ..., 1, nan,...]
, is it right to regard the number of pumping of trial k as 3?The text was updated successfully, but these errors were encountered: