score_control {metaconfoundr} | R Documentation |
Add a score of confounding control
Description
score_control()
adds a variable, score
, that summarizes how well a study
controls for a domain or construct. Used to sort heatmaps and traffic light
plots.
Usage
score_control(.df, score = c("adequate", "sum", "controlled"))
Arguments
.df |
A data frame, usually the result of |
score |
The approach used to calculate the score. |
Value
a tibble
Examples
library(dplyr)
ipi %>%
metaconfoundr() %>%
filter(is_confounder == "Y") %>%
score_control("controlled") %>%
arrange(desc(score))
[Package metaconfoundr version 0.1.2 Index]