Skip to content

Commit e446e33

Browse files
author
Bob Carpenter
committed
fixed symmetry in prior for corr-lda in example and doc
1 parent 68e148b commit e446e33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

misc/cluster/lda/corr-lda.stan

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ transformed parameters {
2121
theta[m] <- softmax(eta[m]);
2222
for (m in 1:M) {
2323
Sigma[m,m] <- sigma[m] * sigma[m] * Omega[m,m];
24-
for (n in (m+1):M)
24+
for (n in (m+1):M) {
2525
Sigma[m,n] <- sigma[m] * sigma[n] * Omega[m,n];
26+
Sigma[n,m] <- Sigma[m,n];
27+
}
2628
}
2729
}
2830
model {

0 commit comments

Comments
 (0)