Skip to content

Commit

Permalink
alpha to vector, run-extended
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed May 24, 2024
1 parent a5c87c9 commit 4b7c2e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/stanblocks_families.R
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ transformed_parameters_lines_default <- function(y, idt, noncentered,
if (has_fixed || has_varying) {
declare_omega_alpha_1 <- paste_rows(
"// Time-varying intercept",
stan_array(backend, "real", "alpha_{y}", "T"),
"vector[T] alpha_{y};",
"// Spline coefficients",
"real omega_alpha_1_{y};",
.indent = idt(1),
Expand Down Expand Up @@ -1641,8 +1641,8 @@ transformed_parameters_lines_default <- function(y, idt, noncentered,
)
} else {
declare_omega_alpha_1 <- paste_rows(
"// Time-invariant intercept",
stan_array(backend, "real", "alpha_{y}", "T"),
"// Time-varying intercept",
"vector[T] alpha_{y};",
"real omega_alpha_1_{y} = a_{y};",
.indent = idt(1),
.parse = FALSE
Expand Down

0 comments on commit 4b7c2e6

Please sign in to comment.