| dr_from_design | R Documentation |
Provides a convenience mapping from design-type labels to numeric scores.
dr_from_design(
design,
custom_map = NULL,
default_score = 0.25,
warn_unknown = TRUE
)
design |
Character vector of design labels (case-insensitive). |
custom_map |
Optional named numeric vector overriding or extending the defaults. |
default_score |
Score assigned to unrecognised labels. Default 0.25. |
warn_unknown |
If TRUE, warn about unrecognised labels. |
This mapping is a demonstration default, not a validated measurement model
and not a universal hierarchy of study quality. A design label does not
determine the magnitude or direction of bias in a particular evidence base.
For substantive work the index should be constructed for the specific
synthesis, outcome, and identification problem at hand, ordinarily with
dr_score, and reported under alternative defensible codings.
A numeric vector of scores in [0, 1], the same length as
design.
dr_score
dr_from_design(c("RCT", "DiD", "OLS", "IV", "matching"))
dr_from_design("house_method", custom_map = c(house_method = 0.65))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.