Skip to content

Commit

Permalink
Merge branch 'cmdstanr' of https://github.com/MangiolaLaboratory/sccomp
Browse files Browse the repository at this point in the history
… into cmdstanr
  • Loading branch information
stemangiola committed Sep 23, 2024
2 parents a5f9105 + a88a928 commit 5607c7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,12 @@ fit_model = function(
if(data_for_model$n_random_eff>1){
init_list$random_effect_raw_2 = matrix(0, data_for_model$ncol_X_random_eff[2] , data_for_model$M-1)
init_list$random_effect_sigma_raw_2 = matrix(0, data_for_model$M-1 , data_for_model$how_many_factors_in_random_design[2])
init_list$sigma_correlation_factor_2 = matrix(0, data_for_model$how_many_factors_in_random_design[2] , data_for_model$how_many_factors_in_random_design[2] )

init_list$sigma_correlation_factor_2 = array(0, dim = c(
data_for_model$M-1,
data_for_model$how_many_factors_in_random_design[2],
data_for_model$how_many_factors_in_random_design[2]
))

}

init = map(1:chains, ~ init_list) %>%
Expand Down

0 comments on commit 5607c7c

Please sign in to comment.