Skip to content

Commit

Permalink
Update pj_estimate.R
Browse files Browse the repository at this point in the history
Changed again
  • Loading branch information
yhoriuchi committed Aug 19, 2023
1 parent 7106420 commit 1dbac20
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions R/pj_estimate.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ pj_estimate <- function(
selected <- NULL
selected_1 <- NULL
selected_2 <- NULL

# Organize data -----------------------------------------------------------

if (estimand == "mm"){
Expand Down Expand Up @@ -563,13 +563,16 @@ pj_estimate <- function(

# Keep the observations with both "selected" and "agree"

if (is.null(irr)){
data_for_cov <- data_for_estimand %>%
dplyr::filter(!is.na(agree))
} else{
data_for_cov <- data_for_estimand
}

data_for_cov <- data_for_estimand %>%
dplyr::filter(!is.na(agree))

# if (is.null(irr)){
# data_for_cov <- data_for_estimand %>%
# dplyr::filter(!is.na(agree))
# } else{
# data_for_cov <- data_for_estimand
# }

if (estimand == "mm"){

if (is.null(.irr)){
Expand Down

0 comments on commit 1dbac20

Please sign in to comment.