View source: R/plot_wildmeta.R
plot.Wald_test_wildmeta | R Documentation |
Creates a density plot showing the distribution of bootstrap test statistics.
## S3 method for class 'Wald_test_wildmeta'
plot(x, ...)
x |
Results from Wald_test_cwb function |
... |
Any other arguments to be passed to |
A ggplot2 density plot.
data("SATcoaching", package = "clubSandwich")
library(clubSandwich)
library(robumeta)
full_model <- robu(d ~ 0 + study_type + hrs + test,
studynum = study,
var.eff.size = V,
small = FALSE,
data = SATcoaching)
res <- Wald_test_cwb(full_model = full_model,
constraints = constrain_equal(1:3),
R = 99)
if (requireNamespace("ggplot2", quietly = TRUE)) {
plot(res, fill = "darkred", alpha = 0.5)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.