pppvalue: Pointwise Adjusted Permutation P-values (PPPvalue)

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/pppvalue.R

Description

Perform three distribution-free adjustments for pointwise p-values based on envelope/graphical tests. The current version is made available for testing.

Usage

1
pppvalue(realvec, permat, method = "all")

Arguments

realvec

A vector of observed data.

permat

A matrix of simulated/permuted data, the nrow of which must be the same as the length of realvec and the ncol of which denotes the number of the simulation or permutation.

method

A charactor option specifying three adjustments or all of these, for 'single-step', 'step-down', 'ERL' and 'all'. The default is 'all'. See details.

Details

There are three distribution-free p-value adjustments offered in this package:

Please see Xu and Reiss (2019) for more details.

Value

Estimated pointwise adjusted p-values.

Note

Author(s)

Meng Xu mxu@campus.haifa.ac.il, Philip Reiss

References

Xu, M., and Reiss, P. T. (2019). Distribution-Free Pointwise Adjusted P-Values for Functional Hypotheses. https://arxiv.org/abs/1912.00360.

See Also

The plot function pppvalue.plot. Other useful resources on Global Evelope Test refer to the GET package (global_envelope_test).

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
set.seed(123)
library(pppvalue)
obs <- rnorm(20,mean=2, sd=2)
perms <- matrix(rnorm(20*999),20)
pvals <- pppvalue(obs, perms)
pppvalue.plot(pvals)

## End(Not run)

wtagr/pppvalue documentation built on Jan. 13, 2020, 12:27 a.m.