sim_facs | R Documentation |
Simulate FACS data
sim_facs(m, n_obs = 10, jp = NULL)
m |
A matrix with condition as |
n_obs |
Number of observations per condition to simulate |
jp |
An optional list of matrices, the same length as |
elements <- as.character(1:10) conditions <- letters[1:2] # randomly generate probability of elements probabilities <- sapply(elements, function(x) { p <- runif(length(conditions)) setNames(round(p, 1), nm = conditions) }) sim_facs(probabilities)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.