computeConfidenceBoundsForDifferenceTwoProportions {safestats} | R Documentation |
Estimate Lower and Upper Bounds on the Confidence Sequence (Interval) for the Difference Divergence Measure for Two Proportions
Description
Estimate Lower and Upper Bounds on the Confidence Sequence (Interval) for the Difference Divergence Measure for Two Proportions
Usage
computeConfidenceBoundsForDifferenceTwoProportions(
ya,
yb,
precision,
safeDesign
)
Arguments
ya |
positive observations/ events per data block in group a: a numeric with integer values
between (and including) 0 and |
yb |
positive observations/ events per data block in group b: a numeric with integer values
between (and including) 0 and |
precision |
precision of the grid of differences to search over for the lower and upper bounds. |
safeDesign |
a 'safeDesign' object obtained through
|
Value
list with found lower and upper bound.
Examples
balancedSafeDesign <- designSafeTwoProportions(na = 1,
nb = 1,
nBlocksPlan = 10,
alpha = 0.05)
ya <- c(1,1,1,1,1,1,1,1,0,1)
yb <- c(0,0,0,0,1,0,0,0,0,0)
computeConfidenceBoundsForDifferenceTwoProportions(ya = ya,
yb = yb,
precision = 20,
safeDesign = balancedSafeDesign)
[Package safestats version 0.8.7 Index]