polyasUrnFuncSimple: Polya's Urn Simple Function

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
polyasUrnFuncSimple(pat, sim, trt = 2, trtRat = 100)

Arguments

pat

Number of patients

sim

Number of simulations

trt

Number of treatments (default = 2)

trtRat

Success rate of all treatments

Value

3D matrix (treatment x patients x simulations) with the ratio of each treatment compared to all treatments for each patient and each simulation

Author(s)

mitja seibold mitja.seibold@student.uva.nl

See Also

polyasUrnFuncAdvanced

Examples

1
2
3
4
p <- 100
s <- 2
t <- 3
plotRatio(polyasUrnFuncSimple(p,s,t))

81N55E/PNS_Polya documentation built on May 24, 2019, 8:48 p.m.