Description Usage Arguments Value
View source: R/data_generation_functions.R
Simulates a single study based on the input parameters.
1 2 3 4 5 6 7 8 9 10 11 | simulate_study(
job_id,
scenario_id,
p_contr,
bias_type,
bias_strength = NULL,
odds_ratio,
n_cg_distr,
bias_table,
tau_squared = 0
)
|
job_id |
user defined job_id. |
scenario_id |
id of current scenario.. |
p_contr |
Probability of events in control group. |
bias_type |
Bias type can either be "p" or "es". |
bias_strength |
String indicating bias severity "moderate" or "strong". only needs to be supplied when bias type = "p". |
odds_ratio |
True underlying effect of the symulated meta-analysis.#' |
n_cg_distr |
Sample size in control group (= sample size in exposed group) Can be any value or function that evaluates to an integer. |
tau_squared |
Product of hereogeneity parameter and mean within study-variance |
A list of descriptives for one simulated study.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.