simulate_study: Simulate single study.

Description Usage Arguments Value

View source: R/data_generation_functions.R

Description

Simulates a single study based on the input parameters.

Usage

 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
)

Arguments

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

Value

A list of descriptives for one simulated study.


replisims/peters-2016 documentation built on Aug. 6, 2020, 12:15 a.m.