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

View source: R/simulate.R

simulate_MIMOSA2R Documentation

Simulate data for MIMOSA2 model, ICS with baseline.

Description

Simulate data for MIMOSA2 model, ICS with baseline.

Usage

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

s = simulate_MIMOSA2()

RGLab/MIMOSA2 documentation built on Oct. 10, 2022, 8:35 p.m.