Learn R Programming

exact.n (version 1.1.1)

fetch.data: Download a target power library

Description

Function downloads one of 85 power libraries from chrislloyd.com.au. The libraries are all four column matrices with roughly 20 million rows and will be around 1.4Gb within R. Download should take roughly a minute. The object will have a name of the form LIB.alpha.delta.Rdata.

Usage

fetch.data(alpha, delta, prin = FALSE)

Value

No return value. A library object will appear in the global environment.

Arguments

alpha

value of nominal size of test

delta

value of clinically relevant difference

prin

If TRUE, error and/or warning messages are printed.

Author

Chris J. Lloyd

References

C.J. Lloyd (2022) Exact samples sizes for clinical trials subject to size and power constraints. tools:::Rd_expr_doi("10.13140/RG.2.2.11828.94085")

Examples

Run this code
#'
if (FALSE) {
fetch.data(alpha=0.05,delta=0.10)
# Object LIB.a050.d10 will appear with 83,289,960 elements
}

Run the code above in your browser using DataLab