pvalues: Compute P-values Based on Jonckheere-Terpstra Test Statistics

Description Usage Arguments Value See Also Examples

View source: R/pvalues.R

Description

Method to compute the p-values for results from fastJT. fastJT must be run with standardized=TRUE in order to use this function.

Usage

1
pvalues(object)  	

Arguments

object

A fastJT object that is the return of method fastJT. Required.

Value

A matrix of p-values with the same dimensions as the standardized statistics from fastJT.

See Also

fastJT

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Generate dummy data	
num_patient <- 100
num_marker 	<- 10
num_SNP     <- 500
set.seed(12345)
Mark <- matrix(rnorm(num_patient*num_marker), num_patient, num_marker)
Geno <- matrix(rbinom(num_patient*num_SNP, 2, 0.5), num_patient, num_SNP)
colnames(Mark) <- paste0("Mrk:",1:num_marker)
colnames(Geno) <- paste0("SNP:",1:num_SNP)

res <- fastJT(Y=Mark, X=Geno, outTopN=5)
pvalues(res)
res <- fastJT(Y=Mark, X=Geno, outTopN=NA)
pvalues(res)

fastJT documentation built on Nov. 10, 2020, 3:52 p.m.