pk: Median unbiased estimator

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Calculates the median unbiased estimator of true response rate for for Simon-like designs.

Usage

1
pk(s, n1, r1, n, p0)

Arguments

s

Total number of successes.

n1

Stage 1 sample size.

r1

Stage 1 critical value (trial is stopped at stage 1 if the number of successes is at most r1).

n

Total sample size.

p0

Response rate under the null hypothesis.

Details

Median unbiased estimator is the value of response rate such that the p-value is 0.5 (Koyama and Chen, 2008). The solution is found using numerical search, with a precision of 0.000001.

Value

Estimate of the response rate.

Author(s)

Arsenio Nhacolo

References

Koyama, T. and Chen, H. Proper inference from Simon's two-stage designs. Stat Med, 2008, 27, 3145-3154.

See Also

pvaluek, pquantile, pm, pg, pu and pp.

Examples

1
pk(21, 19, 4, 54, 0.2)

arsenionhacolo/InferenceBEAGSD documentation built on May 9, 2019, 4:10 a.m.