cond.cdf: conditional cdf of p-values given noncentrality parameters

Description Usage Arguments Value Note Author(s) References

View source: R/cond.cdf.R

Description

conditional cdf of p-values given noncentrality parameters (ncp)

Usage

1
2
3
cond.cdf(p.eval,ncp,test=c("t","z"),alternative=c("two.sided","less",
    "greater"), df=if(test=="z")Inf else df,keep.cdf=TRUE,
    suppressWarnings=TRUE) 

Arguments

p.eval

numeric vector, at which the conditional CDF is evaluated.

ncp

Numeric vector of noncentrality parameters

test

Either t-test or z-test.

alternative

The same as in t.test.

df

The degree of freedom.

keep.cdf

Logical. If TRUE, the computed CDF will be stored in a hidden environment .pi0cdfp within the global environment for later re-use.

suppressWarnings

Logical, indicating if warnings are suppressed

Value

A numeric matrix, with each row corresponding to p.eval and each column corresponding to ncp.

Note

Warnings might be produced when full precision is not achieved in pt, but this is rarely very problematic.

Author(s)

Long Qu

References

Ruppert, Nettleton, Hwang. 2007. Exploring the Information in $p$-values for the Analysis and Planning of Multiple-test Experiments. Biometrics. 63. 483-495.


pi0 documentation built on May 2, 2019, 4:47 p.m.