Description Usage Arguments Value Author(s) See Also Examples
function that represents the advanced polya's urn simulation setup and creates a 3D matrix (treatment x patients x simulations) to be used for the plotRatio
Besides the same input as in polyasUrnFuncSimple
additionally you have the ability to
change the treatment success rate for treatment 1 and 2, the number of starting balls (for treatment 1 and 2),
the number of return balls (for treatment 1 and 2) and the relapse rate of treatment 1 and 2.
1 2 3 | polyasUrnFuncAdv(pat, sim, trt = 2, trtRat1 = 100, trtRat2 = 100,
nbrBalls1 = 1, nbrBalls2 = 1, nbrRetur1 = 1, nbrRetur2 = 1,
nbrRelap1 = 0, nbrRelap2 = 0)
|
pat |
Number of patients |
sim |
Number of simulations |
trt |
Number of treatments (default = 2) |
trtRat1 |
Success rate of 1. treatment |
trtRat2 |
Success rate of 2. treatment |
nbrBalls1 |
Beginn rate of balls for 1. treatment |
nbrBalls2 |
Beginn rate of balls for 2. treatment |
nbrRetur1 |
Return rate of balls for 1. treatment |
nbrRetur2 |
Return rate of balls for 2. treatment |
nbrRelap1 |
Relapse rate of balls for 1. treatment |
nbrRelap2 |
Relapse rate of balls for 2. treatment |
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 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.