Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Naeemkh committed Sep 9, 2023
1 parent 23b8f14 commit d7864fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/generate_pseudo_pop.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ generate_pseudo_pop <- function(w,
max_attempt <- NULL
covar_bl_trs <- NULL
covar_bl_trs_type <- NULL
delta_n <- NULL

# Log system info
log_system_info()
Expand Down Expand Up @@ -159,7 +160,7 @@ generate_pseudo_pop <- function(w,
w <- tmp_data[, c("id", exposure_col)]
c <- tmp_data[, c("id", covariate_cols)]

if (is.null(bin_seq)){
if (is.null(bin_seq) && ci_appr == "matching"){
min_w <- min(w[[exposure_col]])
max_w <- max(w[[exposure_col]])
start_val <- min_w + delta_n/2
Expand Down

0 comments on commit d7864fb

Please sign in to comment.