Skip to content

Commit

Permalink
update Stan code in slides 8a
Browse files Browse the repository at this point in the history
  • Loading branch information
avehtari committed Nov 27, 2024
1 parent 6166424 commit 9eafe41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified slides/BDA_lecture_8a.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions slides/BDA_lecture_8a.tex
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@
\begin{minted}[gray,fontsize=\footnotesize]{stan}
data {
int<lower=1> N;
int<lower=0> y[N];
array[N] int<lower=0> y;
}
parameters {
real<lower=0> lambda;
Expand All @@ -535,7 +535,7 @@
\begin{minted}[fontsize=\footnotesize,highlightlines=5]{stan}
generated quantities {
real log_lik[N];
int y_rep[N];
array[N] int y_rep;
for (n in 1:N) {
y_rep[n] = poisson_rng(lambda);
log_lik[n] = poisson_lpmf(y[n] | lambda);
Expand Down

0 comments on commit 9eafe41

Please sign in to comment.