simulate_MIMOSA2: Simulate data for MIMOSA2 model, ICS with baseline.

Description Usage Arguments Value See Also Examples

View source: R/simulate.R

Description

Simulate data for MIMOSA2 model, ICS with baseline.

Usage

1
2
3
simulate_MIMOSA2(effect = 5e-04, bg_effect = 0,
  baseline_stim_effect = 0.00025, baseline_background = 1e-04, phi = 5000,
  P = 100, rng = c(1e+05, 150000))

Arguments

effect

numeric effect size for ps1 - pu1 - ps0 + pu0. Default 5e-4

bg_effect

numeric effect size for background pu0-pu1. Default 0

baseline_stim_effect

numeric baseline stimulation effect. Default 2.5e-4

baseline_background

numeric baseline background effect. Default 1e-4

phi

numeric integer, the precision. Default 5000

P

numeric number of subjects.'

rng

numeric vector of length 2. The range of total cell counts to simulate from.

Value

list with components "Ntot" "ns0" "nu0" "ns1" "nu1" "truth"

See Also

MIMOSA2

Examples

1

RGLab/MIMOSA2 documentation built on May 9, 2017, 11:01 p.m.