Description Usage Arguments Value Author(s) See Also Examples
function that represents the simple polya's urn simulation setup and creates a 3D matrix (treatment x patients x simulations) to be used for the plotRatio
1 | polyasUrnFuncSimple(pat, sim, trt = 2, trtRat = 100)
|
pat |
Number of patients |
sim |
Number of simulations |
trt |
Number of treatments (default = 2) |
trtRat |
Success rate of all treatments |
3D matrix (treatment x patients x simulations) with the ratio of each treatment compared to all treatments for each patient and each simulation
mitja seibold mitja.seibold@student.uva.nl
1 2 3 4 | p <- 100
s <- 2
t <- 3
plotRatio(polyasUrnFuncSimple(p,s,t))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.