Closed naoki-egami closed 5 years ago
@sou412 did_plot produces errors on "id_time" and some others in the following part.
did_plot
data %>% group_by(treatment, id_time) %>% summarise(ymean = mean(outcome, na.rm = TRUE)) -> y_summary y1mean <- y_summary %>% filter(treatment == 1) %>% pul(ymean) y0mean <- y_summary %>% filter(treatment == 0) %>% pul(ymean)
data %>% group_by(treatment, id_time) %>% summarise(ymean = mean(outcome, na.rm = TRUE)) -> y_summary
y1mean <- y_summary %>% filter(treatment == 1) %>% pul(ymean)
y0mean <- y_summary %>% filter(treatment == 0) %>% pul(ymean)
I prepared more entire code that reproduces the error. code in double_did
@naoki-egami there was a typo in the code, pul() should have been pull(). Also fixed confusion between variable and variable name in the package. it should be producing a plot now.
pul()
pull()
@sou412
did_plot
produces errors on "id_time" and some others in the following part.data %>% group_by(treatment, id_time) %>% summarise(ymean = mean(outcome, na.rm = TRUE)) -> y_summary
y1mean <- y_summary %>% filter(treatment == 1) %>% pul(ymean)
y0mean <- y_summary %>% filter(treatment == 0) %>% pul(ymean)
I prepared more entire code that reproduces the error. code in double_did