powered by
This function returns the p-value of the significance between two groups.
lrtPvalue(data, type, groups, numPerms = 10, parallel = FALSE, cores = 3)
A data frame in which the columns contain a 0/1 value for each node in the rows.
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.
The p-value for the difference between the two groups being tested.
data(braingraphs) grps <- sample(0:1, ncol(braingraphs), TRUE) numPermutations <- 1 ### This is set low for speed lrt <- lrtPvalue(braingraphs, "adjMatrix", grps, numPermutations) lrt
Run the code above in your browser using DataLab