Skip to content

Commit

Permalink
fixed bug where Id mixed up rep and each for number of groups and 2
Browse files Browse the repository at this point in the history
* still need to double check this is actually correct
  • Loading branch information
n8thangreen committed Aug 24, 2024
1 parent 40e6dd5 commit 268aac5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/default_prior_cure.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
default_prior_cure <- function(formula_cure,
prior_cure = list(),
bg_model = 2) {
browser()
nTx <- formula_cure$fe_nlevels[1]
n_groups <- formula_cure$n_groups
nvars <- formula_cure$nvars
Expand Down Expand Up @@ -63,7 +64,7 @@ default_prior_cure <- function(formula_cure,
rep(formula_cure$n_groups)

names(params_cf) <-
paste0(names(params_cf), "_", rep(1:2, each = formula_cure$n_groups))
paste0(names(params_cf), "_", rep(1:formula_cure$n_groups, each = 2))
} else if (is_pooled_cf(formula_cure)) {
params_cf <-
list(a_cf = 3,
Expand Down

0 comments on commit 268aac5

Please sign in to comment.