plotNullDistribution {pARI} | R Documentation |
Plot permutation p-values distribution
Description
Create a plot of permutation pvalues with corresponding specified critical vectors.
Usage
plotNullDistribution(P=NULL,family="simes",alpha = 0.05,
path = getwd(), name = "plot", delta = 0,
copes=NULL,mask=NULL, alternative = "two.sided", rand = FALSE, B = 1000)
Arguments
P |
matrix of pvalues with dimensions |
family |
string character. Choose a family of confidence envelopes to compute the critical vector.
from |
alpha |
numeric value in '[0,1]'. It expresses the alpha level to control the family-wise error rate. Default 0.1. |
path |
character string. Path to save the plot. The path does not must end with |
name |
character string. The name of file that will be used to save the plot. Default to name. |
delta |
numeric value. It expresses the delta value, please see the references.
Default to 0. If more than one critical vector are considered, |
copes |
list of NIfTI file if |
mask |
NIfTI file or character string. 3D array of logical values (i.e. |
alternative |
character string. It refers to the alternative hypothesis, must be one of |
rand |
Boolean value. Default @FALSE. If |
B |
numeric value. Number of permutations, default to 1000. |
Value
Save a plot in path
with name specified in name
describing the p-values null distribution with critical value curve and observed pvalues in red.
Author(s)
Angela Andreella
Examples
## Not run:
db <- simulateData(pi0 = 0.8, m = 100, n = 20, rho = 0)
out <- signTest(X = db)
pv <- cbind(out$pv, out$pv_H0)
plotNullDistribution(P = pv)
## End(Not run)