powered by
This function returns the p-value of the significance of the difference in g-star values for paired data.
pairedPvalue(data, type, groups, numPerms = 10, parallel = FALSE, cores = 3)
A data frame in which the columns (subjects) contain a 0/1 value for row (Node or Edge).
The type of graph being used (adjmatrix or adjmatrixlt).
A vector of 0/1s used to denote the group membership of columns in the data.
The number of permutations (ideally, 1000 or more).
TRUE or FALSE depending on whether the analysis will be parallelized for speed.
The number of cores to use for parallelization. Ignored if parallel = FALSE.
A p-value.
data(braingraphs) grps <- c(rep(0, 19), rep(1, 19)) numPermutations <- 1 ### This is set low for speed pval <- pairedPvalue(braingraphs, "adjMatrix", grps, numPermutations) pval
Run the code above in your browser using DataLab