glrtPvalue {bingat}R Documentation

GLRT Regression Results

Description

This function returns the p-value of the significance of b1 in the regression model.

Usage

	glrtPvalue(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

A list containing the p-value, tau, logliklihood value, glrt value, bob1, b0, b1 and the hamming errors.

Author(s)

Terrence Brooks, Berkley Shands, Skye Buckner-Petty, Patricio S. La Rosa, 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
	
	res <- glrtPvalue(dataList, "adjMatrix", numPerms=numPerms) 
	res$pvalue

[Package bingat version 1.3 Index]