Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
n8thangreen committed Sep 15, 2024
1 parent 4df76a9 commit 0b6ed4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/stan_code_blocks.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ make_latent_model_code <- function(model, id = 1L) {

scode$trans_params_main <-
glue("lambda_{id} = exp(lp_{id});\n",
"for (i in 1:num_elements(lambda_{id})) {{ \\ constrain upper limit\n",
"for (i in 1:num_elements(lambda_{id})) {{ // constrain upper limit\n",
" if (lambda_{id}[i] > 100) {{\n",
" lambda_{id}[i] = 100;\n",
"}}\n")
" }\n",
"}\n")

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

0 comments on commit 0b6ed4d

Please sign in to comment.