powered by
This function simulates aggregated data for a meta-analysis, introducing biased studies at different levels.
simData( mu, sigma, n.total, tau, N, mu.beta.1, mu.beta.2, mu.beta.3, n.B.1, n.B.2, n.B.3 )
A dataframe with columns:
Observed study's effect.
Standard error of the study's effect.
True study's effect.
Sample size of the study.
Bias category: "No B", "Mild B", "Large B", "Extreme B".
Scalar with the true pooled effect value.
Scalar with the true intra-study standard deviation.
A vector with the sample sizes of the studies.
Scalar with the between-studies standard deviation.
Scalar with the total number of studies in the meta-analysis.
Scalar with the mean bias of studies in the mild bias class.
Scalar with the mean bias of studies in the large bias class.
Scalar with the mean bias of studies in the extreme bias class.
Scalar with the number of studies in the mild bias class.
Scalar with the number of studies in the large bias class.
Scalar with the number of studies in the extreme bias class.
set.seed(123) simData(mu = 0, sigma = 1, n.total = rep(100, 10), tau = 0.5, N = 10, mu.beta.1 = 0.2, mu.beta.2 = 0.5, mu.beta.3 = 1, n.B.1 = 2, n.B.2 = 2, n.B.3 = 2)
Run the code above in your browser using DataLab