Skip to content

Commit

Permalink
fix handling of subpops from merge, modify vignette temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitejohnson committed Oct 25, 2024
1 parent 356e336 commit 4822fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_stan_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ get_stan_data <- function(input_count_data,
# This dist_matrix will not be used, only needed for stan data specs.
dist_matrix <- matrix(
0,
nrow = subpop_data$n_subpops - 1,
ncol = subpop_data$n_subpops - 1
nrow = length(ww_vals$subpop_pops) - 1,
ncol = length(ww_vals$subpop_pops) - 1
)
}
if (!(corr_structure_switch %in% c(0, 1, 2))) {
Expand Down
1 change: 1 addition & 0 deletions vignettes/wwinference.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ compile the model. This can be done using the `compile_model()` function


```{r compile-model}
# temporarily compile from local to make troubleshooting faster/easier
model <- wwinference::compile_model(
model_filepath = here::here(file.path(
"inst", "stan", "wwinference.stan"
Expand Down

0 comments on commit 4822fa0

Please sign in to comment.