Dear stan community. I want to do predictions via generated quantities block. Should the weights be applied again in the generated quantities
block in addition to the likelihood in the model
block?
model{
...
target += weights[i] * binomial_lpmf(...);
...
}
generated quantities{
...
y_pred[i] = weights[i] * inv_logit(...);
...
}
or not?
model{
...
target += weights[i] * binomial_lpmf(...);
...
}
generated quantities{
...
y_pred[i] = inv_logit(...);
...
}
Thanks in advance for any help.