Description Usage Arguments Value Examples
Add features like stage and tumor type to an initialized population - parallelized
1 | paradd_features(popbysim, probs, names = NULL, ncores = 4)
|
popbysim |
A matrix of dimensions (population size)x(number of sims) |
probs |
A vector of probabilities summing to 1. Each probability represents the probability of being in each feature group stage and tumor-type subgroup |
stagetumor |
Optional vector of names corresponding to the stage-tumor subgroups in probs. Defaults to 1:length(probs) param ncores Number of cores |
Matrix of dimensions (pop size)x(nsim) indicating stage-tumor status according to the 'names' parameter Defaults to 1:length(probs)
1 2 3 4 5 6 | Say there are four stage-ER receptor subgroups that have equal probability,
in a population of size 20 and 2 simulations
add_features(matrix(1, nrow=20, ncol=2), probs=c(0.25, 0.25, 0.25, 0.25))
Could ID the groups by name
add_features(matrix(1, nrow=20, ncol=2), probs=c(0.25, 0.25, 0.25, 0.25),
names=c('EarlyER+', 'EarlyER-', 'AdvancedER+', 'AdvancedER-'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.