Pval_function: Pval_function

Description Usage Arguments Value

View source: R/all.R

Description

Performs multiple comparison corrections on p-values and returns significant SNP's. This is used internally for the preselection function.

Usage

1
Pval_function(p_vals,n,thresh,control)

Arguments

p_vals

A vector of p-values calculated by the preselection function.

n

The original number of SNPs

thresh

The type 1 error rate

control

The multiple comparison correction one would like to apply.

Value

The results are formated as a data.frame with the column Significant being 1 or 0 depending on if the SNP was significant (1 for significant). The P_values column will be the p-values that were calculated for each SNP.


willja16/GWAS.BAYES documentation built on Sept. 24, 2020, 12:48 a.m.