n_ES_empirical: Simulate empirical distribution of sample size and number of...

View source: R/data-generation.R

n_ES_empiricalR Documentation

Simulate empirical distribution of sample size and number of effect sizes

Description

A functional that takes in a dataset with empirical distribution of primary study sample sizes and number of effect sizes per primary study and returns a function that generates random samples from the dataset

Usage

n_ES_empirical(dat)

Arguments

dat

a data.frame or tibble containing primary study sample sizes and number of effect sizes per primary study.

Value

A function that generates random samples from the input dataset.

Examples

study_features <- n_ES_empirical(wwc_es)
study_features(m=3)
study_features(m=7)


metaselection documentation built on Aug. 31, 2026, 5:08 p.m.