Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
fix(stan): 08-robust_robit_regression
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed Dec 3, 2023
1 parent 160a2d8 commit 70f4549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stan/08-robust_robit_regression.stan
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ model {

// likelihood
vector[N] p_hat;
for (n in 1:N) p_hat[n] = student_t_cdf(alpha + X[n] * beta, nu, 0, sqrt((nu - 2)/nu));
for (n in 1:N) p_hat[n] = student_t_cdf(alpha + X[n] * beta | nu, 0, sqrt((nu - 2)/nu));
y ~ bernoulli(p_hat);
}
// results:
Expand Down

0 comments on commit 70f4549

Please sign in to comment.