Closed bschilder closed 3 years ago
The "sample_size" column in find_sumstats is often NA. In these situations, create N from the sum of "ncase" and "ncontrol".
find_sumstats
NA
metagwas <- metagwas %>% dplyr::mutate(N = ifelse(is.na(sample_size), sum(ncase, ncontrol, na.rm = TRUE), sample_size))
The "sample_size" column in
find_sumstats
is oftenNA
. In these situations, create N from the sum of "ncase" and "ncontrol".