num_studies | R Documentation |
Computes how many studies are in each level of categorical moderators of a rma.mv
model object.
num_studies(data, mod, group)
data |
Raw data from object of class "orchard" |
mod |
Character string describing the moderator of interest. |
group |
A character string specifying the column name of the study ID grouping variable. |
Returns a table with the number of studies in each level of all parameters within a rma.mv
or rma
object.
Shinichi Nakagawa - s.nakagawa@unsw.edu.au
Daniel Noble - daniel.noble@anu.edu.au
## Not run: data(fish)
warm_dat <- fish
model <- metafor::rma.mv(yi = lnrr, V = lnrr_vi, random = list( ~1 | es_ID,~1 | group_ID), mods = ~experimental_design-1, method = "REML", test = "t", data = warm_dat, control=list(optimizer="optim", optmethod="Nelder-Mead"))
num_studies(model$data, experimental_design, group_ID)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.