simulate_data: Generate dataset for vignettes and simulation studies

Description Usage Arguments Value Examples

View source: R/simulate_data.R

Description

Generate dataset for vignettes and simulation studies

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
simulate_data(
  n_markers = 5,
  n_true = 1,
  n_samples = 8,
  paired = TRUE,
  n_cells = 100,
  pi = 0.05,
  beta_treatment = log(20),
  beta_control = log(5),
  rho_b = 0.5,
  rho_u = 0.5
)

Arguments

n_markers

number of markers

n_true

number of differential markers

n_samples

donors per group

paired

paired experimental design

n_cells

per sample

pi

zero inflation probability

beta_treatment

log of mean in treatment

beta_control

log of mean in control

rho_b

cell level correlation

rho_u

donor level correlation

Value

tibble data frame

Examples

1
2
3
4
set.seed(1)
df = simulate_data(n_cells = 10)
str(df)
df

ChristofSeiler/cytoeffect documentation built on Nov. 24, 2020, 12:25 a.m.