simulate_data: Generate dataset for vignettes and simulation studies

View source: R/simulate_data.R

simulate_dataR Documentation

Generate dataset for vignettes and simulation studies

Description

Generate dataset for vignettes and simulation studies

Usage

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

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


ChristofSeiler/cytoeffect documentation built on Jan. 11, 2023, 1:05 p.m.