From 67dabdc873cdbf9743b0dcd40acafc7df57956c7 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 2 Feb 2024 11:06:25 +0100 Subject: [PATCH] fix --- vignettes/parameters.Rmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vignettes/parameters.Rmd b/vignettes/parameters.Rmd index f92b1bf14..e70c970aa 100644 --- a/vignettes/parameters.Rmd +++ b/vignettes/parameters.Rmd @@ -323,7 +323,8 @@ dat <- escalc( ) dat$author <- make.unique(dat$author) dat$disease <- sample(c("Cancer", "CVD", "Depression"), size = nrow(dat), replace = TRUE) -model <- rma(yi, vi, mods = ~disease, data = dat, digits = 3, slab = author) +mydat <<- dat +model <- rma(yi, vi, mods = ~disease, data = mydat, digits = 3, slab = author) result <- model_parameters(model) result