Skip to content

Commit c8c0b27

Browse files
committed
update hmm-example.Rmd to new syntax
1 parent 90f9461 commit c8c0b27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

knitr/hmm-example/hmm-example.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ of the initial state. Posterior draws from the hidden states can be computed
3838
separately.
3939

4040
A more complete mathematical definition of the HMM model and function interface
41-
is given in the [Hidden Markov Models](https://mc-stan.org/docs/2_24/functions-reference/hidden-markov-models.html)
41+
is given in the [Hidden Markov Models](https://mc-stan.org/docs/functions-reference/hidden-markov-models.html)
4242
section of the Function Reference Guide.
4343

4444
There are three functions
@@ -120,7 +120,7 @@ The data is the previously generated sequence of $N$ measurements:
120120
```{stan, output.var = "", eval = FALSE}
121121
data {
122122
int N; // Number of observations
123-
real y[N];
123+
array[N] real y;
124124
}
125125
```
126126

@@ -267,7 +267,7 @@ can be generated with `hmm_latent_rng`:
267267

268268
```{stan, output.var = "", eval = FALSE}
269269
generated quantities {
270-
int[N] y_sim = hmm_latent_rng(log_omega, Gamma, rho)
270+
array[N] int y_sim = hmm_latent_rng(log_omega, Gamma, rho);
271271
}
272272
```
273273

0 commit comments

Comments
 (0)