estimatePvaluesSpearman: estimatePvaluesSpearman

Description Usage Arguments Value

View source: R/DCARS.R

Description

the estimatePvaluesSpearman function more accurately estimates p-values by taking into account the relationship between the global correlation and the distribution of the permuted Spearman-based DCARS test statistics.

Usage

1
2
estimatePvaluesSpearman(stats, globalCors, permstats, usenperm = FALSE,
  nperm = 10000, maxDist = 0.1, plot = FALSE, verbose = FALSE)

Arguments

stats

a named vector of observed DCARS test statistics, names should appear in names of globalCor

globalCors

a named vector containing global spearman correlation for each gene pair

permstats

a named list containing permuted test statistics, names should appear in names of globalCor

usenperm

logical to use number of permutations to select nearest genepairs

nperm

number of permutations, used is usenperm = TRUE

maxDist

numeric maximum difference in globalCor to consider for permutations, only used if usenperm = FALSE

plot

logical default FALSE, if TRUE plots the globalCor against mean of permuted test statistics, and shows fitted polynomial

verbose

logical default FALSE, if TRUE prints genepair names

Value

data.frame


shazanfar/DCARS documentation built on Oct. 14, 2020, 11:11 a.m.