Skip to content

Commit

Permalink
Update organize_data.R
Browse files Browse the repository at this point in the history
  • Loading branch information
yhoriuchi committed Jul 15, 2023
1 parent 895fa4e commit af34729
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions R/organize_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ organize_data <- function(

# data frame to estimate IRR
data1 <- out1 %>%
dplyr::selected(id, task, disagree) %>%
distinct()
dplyr::select(id, task, disagree) %>%
dplyr::distinct()

# data frame to estimate MM or AMCE
data2 <- out2 %>%
dplyr::select(id, task, att, selected, disagree)

return(list(data1, data2))
list("data_for_irr" = data1,
"data_for_estimand" = data2) %>%
return()

}

0 comments on commit af34729

Please sign in to comment.