Learn R Programming

mcradds (version 1.1.1)

size_one_prop: Sample Size for Testing One Proportion

Description

[Experimental]

This function performs sample size computation for testing one proportion in accordance with Chinese NMPA's IVD guideline.

Usage

size_one_prop(
  p1,
  p0,
  alpha = 0.05,
  power = 0.8,
  alternative = c("two.sided", "less", "greater")
)

Value

an object of size class that contains the sample size and relevant parameters.

Arguments

p1

(numeric)
expected criteria of the evaluated assay.

p0

(numeric)
acceptable criteria of the evaluated assay.

alpha

(numeric)
type-I-risk, \(\alpha\).

power

(numeric)
Power of test, equal to 1 minus type-II-risk (\(\beta\)).

alternative

(string)
string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".

References

Chinese NMPA's IVD technical guideline.

See Also

size_ci_one_prop() size_corr() size_ci_corr()

Examples

Run this code
size_one_prop(p1 = 0.95, p0 = 0.9, alpha = 0.05, power = 0.8)

Run the code above in your browser using DataLab