*! version 1.0 14 May 2018

Title

pval_fixed -- Determine p-values in a single-stage single-arm trial design for a single binary endpoint

Syntax

pval_fixed
[,
options]

Main
n(#) Sample size of the considered design. Defaults to 25.

pi0(#) The (undesirable) response probability used in the definition of the null hypothesis. Defaults to 0.1.

pi(numlist) Numlist of response probabilities to evaluate the expected performance of the p-value calculation procedures at. This will internally default to 0,0.01,...,1.

method(string) A string indicating which method(s) to use to construct p-values. Currently, support is available to use exact binomial tail probabilities (exact) and to use a normal approximation (normal) approach. Defaults to all, which will employ all possible methods.

summary(#) An integer indicating whether a summary of the function's progress should be printed (summary = 1) to the console. Defaults to 0.

plot Indicates whether the expected p-value curve plot should be produced.

* Additional options to use during plotting.

Description

Determines all possible p-values at the end of a single-stage single-arm trial for
a single binary endpoint, as determined using des_fixed. Support is available to
compute p-values using exact binomial tail probabilities, or using a normal
approximation.

In addition, the performance of the chosen p-value calculation procedures
(including their expected value and variance) for each value of pi in the supplied
numlist pi, will also be evaluated.

Options

Main

n(#) Sample size of the considered design. Defaults to 25.

pi0(#) The (undesirable) response probability used in the definition of the null hypothesis. Defaults to 0.1.

pi(numlist) Numlist of response probabilities to evaluate the expected performance of the p-value calculation procedures at. This will internally default to 0,0.01,...,1.

method(string) A string indicating which method(s) to use to construct p-values. Currently, support is available to use exact binomial tail probabilities (exact) and to use a normal approximation (normal) approach. Defaults to all, which will employ all possible methods.

summary(#) An integer indicating whether a summary of the function's progress should be printed (summary = 1) to the console. Defaults to 0.

plot Indicates whether the expected p-value curve plot should be produced.

* Additional options to use during plotting.

Examples

pval_fixed

pval_fixed, n(30)

Author

Michael J. Grayling, MRC Biostatistics Unit, Cambridge.

Email mjg211@cam.ac.uk

See Also

Related commands:

des_fixed (if installed)
opchar_fixed (if installed)
est_fixed (if installed)
ci_fixed (if installed)