Power and type-one-error-rate constraints

# S4 method for Power,numeric
>=(e1, e2)

Arguments

score

either a score of type Power or TypeOneErrorRate, see scores.

threshold

lower (Power) or upper (type one error rate) threshold for the constraint

conditional

vector of length two giving the corridor for conditional power/type one error; defaults to c(.5, .99) for power and c(.001, .99) for type one error rate. Set to c(0, 1) to deactivate completely.

See also

Examples

# \donttest{ load_julia_package() # maximal type one error rate constraint toer_cnstr <- Power(Beta(5, 7) %|% 0.2) <= 0.05 # power constraint with conditional power (given x1) restricted to 25%-100% power_cnstr <- (Power(Beta(5, 7) >= 0.3) >= 0.8) %>% conditional(c(0.25, 1.00)) # }