View source: R/plotNullDistribution.R
plotNullDistribution | R Documentation |
p
-values distributionCreate a plot of permutation-based p
-values with corresponding specified critical vectors.
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)
P |
Matrix of |
family |
String character. Name of the family confidence envelope to compute the critical vector
from |
alpha |
Numeric value in '[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 "plot". |
delta |
Numeric value. |
copes |
List of NIfTI file. The list of copes, i.e., contrasts maps, one for each subject used to compute the statistical tests. |
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 to |
B |
Numeric value. Number of permutations, default to 1000. |
Save a plot in path
with name specified in name
describing the p
-values null distribution with critical value curve and observed p
-values in red.
Angela Andreella
Andreella, A., Hemerik, J., Finos, L., Weeda, W., & Goeman, J. (2023). Permutation-based true discovery proportions for functional magnetic resonance imaging cluster analysis. Statistics in Medicine, 42(14), 2311-2340.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.