Description Usage Arguments Value Author(s) Examples
This function returns the p-value of the significance of the difference in g-star values for paired data.
1 2 |
dataList |
A list where each element is a data frame in which the columns (subjects) contain a 0/1 value for row (Node or Edge). |
type |
The type of graph being used (adjmatrix or adjmatrixlt). |
groups |
Deprecated. Each data set should be an element in dataList. |
numPerms |
Number of permutations. In practice this should be at least 1,000. |
parallel |
TRUE or FALSE depending on whether the analysis will be parallelized for speed. |
cores |
The number of cores to use for parallelization. Ignored if parallel = FALSE. |
data |
Deprecated. Replaced with dataList for clarity. |
The p-value for the difference between the two groups being tested.
Berkley Shands, Elena Deych, William D. Shannon
1 2 3 4 5 6 7 8 9 10 | data(braingraphs)
### Break our data into two groups
dataList <- list(braingraphs[,1:19], braingraphs[,20:38])
### We use 1 for speed, should be at least 1,000
numPerms <- 1
pval <- pairedPvalue(dataList, "adjMatrix", numPerms=numPerms)
pval
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.