powered by
This function returns the p-value of the significance of b1 in the regression model.
glrtPvalue(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 list containing the results from glm.reg and GLRT.reg as well as the p-value.
glm.reg
GLRT.reg
data(braingraphs) grps <- sample(0:1, ncol(braingraphs), TRUE) numPermutations <- 1 ### This is set low for speed glrt <- glrtPvalue(braingraphs, "adjMatrix", grps, numPermutations) glrt
Run the code above in your browser using DataLab