pairedPvalue {bingat} | R Documentation |
P-Value for Paired Data Results
Description
This function returns the p-value of the significance of the difference in g-star values for paired data.
Usage
pairedPvalue(dataList, type, groups, numPerms = 10, parallel = FALSE,
cores = 3, data = NULL)
Arguments
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. |
Value
The p-value for the difference between the two groups being tested.
Author(s)
Berkley Shands, Elena Deych, William D. Shannon
Examples
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
[Package bingat version 1.3 Index]