createSimulationSettings: Create simulation settings

Description Usage Arguments Value

View source: R/Simulation.R

Description

An object specifing a simulation. Currently only Cox proportional hazard models are supported.

Usage

1
2
3
createSimulationSettings(nSites = 5, n = 10000,
  treatedFraction = 0.2, nStrata = 10, minBackgroundHazard = 2e-07,
  maxBackgroundHazard = 2e-05, hazardRatio = 2, randomEffectSd = 0)

Arguments

nSites

Number of database sites to simulate.

n

Number of subjects per site. Either a single number, or a vector of length nSites.

treatedFraction

Fraction of subjects that is treated. Either a single number, or a vector of length nSites.

nStrata

Number of strata per site. Either a single number, or a vector of length nSites.

minBackgroundHazard

Minimum background hazard. Either a single number, or a vector of length nSites.

maxBackgroundHazard

Maximum background hazard. Either a single number, or a vector of length nSites.

hazardRatio

Hazard ratio.

randomEffectSd

Standard deviation of the log(hazardRatio). Fixed effect if equal to 0.

Value

An object of type simulationSettings.


ohdsi-studies/SmallSampleEvidenceSynthesis documentation built on Jan. 16, 2020, 5:20 a.m.