kkawato / rdlearn

Safe Policy Learning under Regression Discontinuity Designs with Multiple Cutoffs
Other
0 stars 0 forks source link

refactor: separated "estimate mu" as suggested #4

Closed kkawato closed 5 months ago

kkawato commented 5 months ago

@sou412 @carolyyzz

This is an interim progress report, so there is no need to do a code review. I would ask you to review the entire code again after the cleanup.

data_all <- tempdata %>% .
mutate(fold_id = sample(1:fold, size = n, replace = TRUE))

data_split <- data_all %>% group_by(fold_id)
group_by(fold_id) %>%.
nest() %>%
arrange(fold_id)