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

View source: R/data-generation.R

n_ES_paramR Documentation

Simulate empirical distribution of sample size and number of effect sizes

Description

A functional that takes in average sample size per primary study, average number of effect sizes per study, and the minimum sample size per study and returns a function to generate random samples of primary study sample sizes and numbers of effect sizes per study.

Usage

n_ES_param(mean_N, mean_ES, min_N = 20L)

Arguments

mean_N

numeric value specifying the average sample size per primary study.

mean_ES

numeric value specifying the average number of effect sizes per primary study.

min_N

numeric value specifying the minimum sample size per study.

Value

A function that generates a data.frame with randomly generated sample size per primary study and number of effect sizes per study.

Examples

study_features <- n_ES_param(mean_N = 40, mean_ES = 3, min_N = 10)
study_features(m = 3)
study_features(m = 5)


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