Learn R Programming

dnapath (version 0.6.4)

get_min_alpha: Get the minimum alpha level for the permutation test

Description

This method is used internally by several methods to determine the minimum significance threshold (alpha value) that can be applied to the permutation p-values obtained in the differential network analysis.

Usage

get_min_alpha(x)

Arguments

x

A 'dnapath_list' or 'dnapath' object from dnapath.

Value

The minimum alpha level that can be used based on the number of permutations performed in the analysis.

Examples

Run this code
# NOT RUN {
data(meso)
data(p53_pathways)
results <- dnapath(x = meso$gene_expression, pathway_list = p53_pathways,
                   groups = meso$groups, n_perm = 5)
get_min_alpha(results) # 1 / (5 + 1) = 0.167
results <- dnapath(x = meso$gene_expression, pathway_list = p53_pathways,
                   groups = meso$groups, n_perm = 10)
get_min_alpha(results) # 1 / (10 + 1) = 0.091
# }

Run the code above in your browser using DataLab