sim_facs {NetFACS} | R Documentation |
Simulate FACS data
Description
Simulate FACS data
Usage
sim_facs(m, n_obs = 10, jp = NULL)
Arguments
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 |
Examples
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)
[Package NetFACS version 0.5.0 Index]