pval_with_less_var: Select p-value estimates with less variance.

Description Usage Arguments Value

View source: R/utility.R

Description

Importance sampling based p-values can be computed in two forms A) sum_i weight_i*X_i / N; B) sum_i weight_i*X_i / sum_i weight_i. This util function picks the better form.

Usage

1

Arguments

pval_mat

A matrix with 4 columns. Column 1 uses form A Column 2 is the estimated variance of Column 1 Column 3 uses form B Column 4 is the estimated variance of Column 3.

Value

A matrix of 2 columns. Column 1 is the p-value estimate. Column 2 is the estimated variance.


chandlerzuo/atSNP documentation built on Oct. 31, 2020, 4:33 a.m.