pval_with_less_var: Select p-value estimates with less variance.

View source: R/utility.R

pval_with_less_varR Documentation

Select p-value estimates with less variance.

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

pval_with_less_var(pval_mat)

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/atIndel documentation built on Jan. 20, 2024, 4:10 a.m.