LukasWallrich / metaUI

Create shiny apps that allow explore of meta-analysis results
https://lukaswallrich.github.io/metaUI/
GNU General Public License v3.0
6 stars 0 forks source link

Automatically remove cases with missings (feature suggestion) #20

Closed LukasRoeseler closed 1 year ago

LukasRoeseler commented 1 year ago

Can you add to the _generateshiny code that missing values are deleted - maybe with a notification about the number of cases? The code didn't run for me when the dataset included entries with missing values (se, p-value).

LukasWallrich commented 1 year ago

Good idea - but should it rather live in the prepare_data (formerly import_data) function?

LukasRoeseler commented 1 year ago

Do you mean as an argument similar to use = "complete.obs" or na.rm = TRUE? I would very much like this.

LukasWallrich commented 1 year ago

I have now added this, with a default option to remove cases where effect size data (including se, var etc) is missing, but to keep those where metadata (e.g., on moderators) is missing ... but it can also be set to TRUE and FALSE, and then works like the usual na.rm.