stable_run: This function generates stable parameters across a range of...

Description Usage Arguments Value

Description

This function generates stable parameters across a range of ORs and then produces data for replicates at these parameter levels.

Usage

1
2
3
stable_run(Ubs, pY_target, pE_target, obs_stable, obs_run, method,
  iter_fn = iter_fn_1, adjust_fn = lin_adjust, cores = 1, reps = 10,
  agg_subset = NULL, ...)

Arguments

Ubs

vector of odds ratios

pY_target

numeric target for the total population prevalence of Y

pE_target

numeric target for the total population prevalence of E

obs_stable

number of observations for the stabilising run

obs_run

number of observations for the main run

method

the simulation method to be used. See 'simulate_UC'

iter_fn

function defining how new stabilising parameters are generated

adjust_fn

the method to be used for adjustment for unmeasured confounders

cores

number of processor cores to use (passed to mclapply)

...

arguments to be passed to sims_fn

Value

list containing data and aggregated data


DASpringate/rUCsims documentation built on May 6, 2019, 1:16 p.m.