Skip to content

Commit d22fc71

Browse files
Merge pull request #230 from ito4303/BPA
Add comments
2 parents 2847a61 + a789fe6 commit d22fc71

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

BPA/Ch.10/js_ms.stan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ generated quantities {
121121
array[M, n_occasions] int<lower=1, upper=3> z; // Latent state
122122

123123
// Generate z[]
124+
// This code generates the posterior predictive distribution
125+
// unconditioned on the observation
124126
for (i in 1 : M) {
125127
z[i, 1] = 1;
126128
for (t in 2 : n_occasions) {

BPA/Ch.10/js_rest_occ.stan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ generated quantities {
212212
array[M, n_occasions] int z; // Latent state
213213

214214
// Generate z[]
215+
// This code generates the posterior predictive distribution
216+
// unconditioned on the observation
215217
for (i in 1 : M) {
216218
int q = 1;
217219
real mu2;

BPA/Ch.10/js_super.stan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ generated quantities {
215215
array[M, n_occasions] int<lower=0, upper=1> z; // Deflated latent state
216216

217217
// Generate w[] and z[]
218+
// This code generates the posterior predictive distribution
219+
// unconditioned on the observation
218220
for (i in 1 : M) {
219221
int q = 1;
220222
if (bernoulli_rng(psi)) {

BPA/Ch.10/js_super_indran.stan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ generated quantities {
226226
sigma2 = square(sigma);
227227

228228
// Generate w[] and z[]
229+
// This code generates the posterior predictive distribution
230+
// unconditioned on the observation
229231
for (i in 1 : M) {
230232
int q = 1;
231233
if (bernoulli_rng(psi)) {

BPA/Ch.10/js_tempran.stan

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ generated quantities {
223223
array[M, n_occasions] int z; // Latent state
224224

225225
// Generate z[]
226+
// This code generates the posterior predictive distribution
227+
// unconditioned on the observation
226228
for (i in 1 : M) {
227229
int q = 1;
228230
real mu2;

0 commit comments

Comments
 (0)