| simulateOptionalStoppingScenarioTwoProportions | R Documentation |
Simulate an optional stopping scenario according to a savi design for two proportions
simulateOptionalStoppingScenarioTwoProportions(saviDesign, M, thetaA, thetaB)
saviDesign |
a 'saviDesign' object obtained through |
M |
integer, the number of data streams to sample. |
thetaA |
Bernoulli distribution parameter in group A |
thetaB |
Bernoulli distribution parameter in group B |
list with the simulation results of the savi test under optional stopping with the following components:
Proportion of sequences where H0 was rejected
Mean stopping time
Proportion of experiments stopped before nBlocksPlan was reached
Minimum stopping time
All achieved E values
All stopping times
Decisions on rejecting H0 for each M
Stopping times of experiments where H0 was rejected
balancedSaviDesign <- designSaviTwoProportions(na = 1,
nb = 1,
nBlocksPlan = 30)
optionalStoppingSimulationResult <- simulateOptionalStoppingScenarioTwoProportions(
saviDesign = balancedSaviDesign,
M = 1e2,
thetaA = 0.2,
thetaB = 0.5
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.