Motivation-and-Behaviour / sleepIPD_analysis

Analysis for the sleep and physical activity pooled study (https://osf.io/gzj9w/)
Other
0 stars 0 forks source link

2l imp #69

Closed conig closed 1 year ago

conig commented 1 year ago

This should fix #66

> tar_load(data_imp)
> as_tibble(mice::complete(data_imp, 1)) %>%
+        select(studyid, filename, sex, age, weight, height, ses) %>%
+        group_by(studyid, filename) %>%
+        filter(filename == 10169)
# A tibble: 6 × 7
# Groups:   studyid, filename [1]
  studyid filename sex      age weight height ses   
    <dbl> <chr>    <fct>  <dbl>  <dbl>  <dbl> <fct> 
1     100 10169    Female  10.9   56.7   159. Medium
2     100 10169    Female  10.9   56.7   159. Medium
3     100 10169    Female  10.9   56.7   159. Medium
4     100 10169    Female  10.9   56.7   159. Medium
5     100 10169    Female  10.9   56.7   159. Medium
6     100 10169    Female  10.9   56.7   159. Medium