bin1samp_text | R Documentation |
Output one-sided, one-sample, single-stage exact binomial design text.
bin1samp_text(
p0,
pa,
alpha = 0.1,
beta = 0.1,
n.min = 20L,
conf = NULL,
outcome = "_OUTCOME_ (_OUT_)"
)
p0 , pa |
the null and alternative hypotheses |
alpha , beta , n.min |
the target type-I and type-II errors and minimum
sample size considered, passed to |
conf |
confidence level for confidence intervals |
outcome |
text string describing the outcome; if a string such as
|
A character string describing the design with attr(, "design")
containing the design.
bin1samp
; binci
Other designs:
b2p_text()
,
mtd_text()
,
simon_text()
,
twostg_text()
## basic usage
p0 <- 0.3
pa <- 0.5
bin1samp_text(p0, pa)
## Not run:
## use cat and/or strwrap for improved formatting and writing
cat(strwrap(bin1samp_text(p0, pa), width = 80), sep = '\n')
cat(bin1samp_text(p0, pa), file = '~/bin1samp_design.txt')
cat(bin1samp_text(p0, pa, outcome = 'overall response (OR) rate'),
file = '~/bin1samp_design2.txt')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.