Skip to content

Commit

Permalink
add strata to unanchor boot
Browse files Browse the repository at this point in the history
  • Loading branch information
hoppanda committed Sep 19, 2024
1 parent 8f418fc commit aa5572c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/maic_unanchored.R
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ maic_unanchored_tte <- function(res,
R = R,
w_obj = weights_object,
pseudo_ipd = pseudo_ipd,
normalize = normalize_weight
normalize = normalize_weight,
strata = weights_object$boot_strata
)
boot_ci <- boot.ci(boot_res, type = boot_ci_type, w_obj = weights_object, pseudo_ipd = pseudo_ipd)

Expand Down Expand Up @@ -467,7 +468,8 @@ maic_unanchored_binary <- function(res,
R = R,
w_obj = weights_object,
pseudo_ipd = pseudo_ipd,
normalize = normalize_weight
normalize = normalize_weight,
strata = weights_object$boot_strata
)
boot_ci <- boot.ci(boot_res, type = boot_ci_type, w_obj = weights_object, pseudo_ipd = pseudo_ipd)

Expand Down

0 comments on commit aa5572c

Please sign in to comment.