lrTestBias {PathwaySplice} | R Documentation |
This function tests presence of selection bias using logistic regression, and produces a boxplot that compares distributions of bias factors (e.g. number of exons) for significant genes and non-significant genes.
lrTestBias(genewise.table, boxplot.width = 0.1)
genewise.table |
A dataframe with genewise p-value for each gene, returned from |
boxplot.width |
width of boxplot |
To determine presentce of selection bias, we fit the following logistic regression model:
Pr(a gene is significant) ~ number of features within the gene
Here features refer to exon bins or splicing junction bins, depending on
how genewise pvalues were obtained in the genewise.table
Nothing to be returned
gene.based.table <- makeGeneTable(featureBasedData) lrTestBias(gene.based.table)