Skip to content

Commit 0b6ed4d

Browse files
committed
typo
1 parent 4df76a9 commit 0b6ed4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/stan_code_blocks.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ make_latent_model_code <- function(model, id = 1L) {
7575

7676
scode$trans_params_main <-
7777
glue("lambda_{id} = exp(lp_{id});\n",
78-
"for (i in 1:num_elements(lambda_{id})) {{ \\ constrain upper limit\n",
78+
"for (i in 1:num_elements(lambda_{id})) {{ // constrain upper limit\n",
7979
" if (lambda_{id}[i] > 100) {{\n",
8080
" lambda_{id}[i] = 100;\n",
81-
"}}\n")
81+
" }\n",
82+
"}\n")
8283

8384
scode$model <-
8485
glue("shape_{id} ~ gamma(a_shape_{id}, b_shape_{id});\n")

0 commit comments

Comments
 (0)