View source: R/simulate_data.R
simulate_data | R Documentation |
Generate dataset for vignettes and simulation studies
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 )
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 |
tibble
data frame
set.seed(1) df = simulate_data(n_cells = 10) str(df) df
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.