Description Usage Arguments Value Author(s) Examples

View source: R/plotNullDistribution.R

Create a plot of permutation pvalues with corresponding specified critical vectors.

1 2 3 |

`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. |

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.

Angela Andreella

1 2 3 4 | ```
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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.