View source: R/dgm-Carter2019.R
| dgm.Carter2019 | R Documentation |
This data-generating mechanism simulates primary studies estimating treatment effects using Cohen's d. The observed effect size is modeled as a fixed mean plus random heterogeneity across studies, with sample sizes varying to generate differences in standard errors. The simulation introduces publication bias via a selection algorithm where the probability of publication depends nonlinearly on the sign and p-value of the effect, with regimes for no, medium, and strong publication bias. It also incorporates questionable research practices (QRPs) such as optional outlier removal, selection between dependent variables, use of moderators, and optional stopping.
The description and code is based on \insertCitehong2021using;textualPublicationBiasBenchmark. The data-generating mechanism was introduced in \insertCitecarter2019correcting;textualPublicationBiasBenchmark.
## S3 method for class 'Carter2019'
dgm(dgm_name, settings)
dgm_name |
DGM name (automatically passed) |
settings |
List containing
|
This simulation environment is based on the framework described by Carter, Schönbrodt, Gervais, and Hilgard (2019). In this setup, primary studies estimate the effect of a treatment using Cohen's d as the effect size metric. The observed difference between treatment and control groups is modeled as the sum of a fixed effect (alpha1) and a random component, which introduces effect heterogeneity across studies. The degree of heterogeneity is controlled by the parameter sigma2_h. Variability in the standard errors of d is generated by simulating primary studies with different sample sizes.
The simulation incorporates two main types of distortions in the research environment. First, a publication selection algorithm is used, where the probability of a study being "published" depends nonlinearly on both the sign of the estimated effect and its p-value. Three publication selection regimes are modeled: "No Publication Bias," "Medium Publication Bias," and "Strong Publication Bias," each defined by different parameters in the selection algorithm. Second, the simulation includes four types of questionable research practices (QRPs): (a) optional removal of outliers, (b) optional selection between two dependent variables, (c) optional use of moderators, and (d) optional stopping.
Data frame with
effect size
standard error
sample size
effect size type
František Bartoš f.bartos96@gmail.com (adapted from Hong and Reed 2021)
dgm(), validate_dgm_setting()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.