bootstrap_test: Calculate a bootstrapped p-value

View source: R/haplotype_test_functions.R

bootstrap_testR Documentation

Calculate a bootstrapped p-value

Description

This function takes the input data and returns a p-value for the null hypothesis that haplotype configurations which influence coding variant penetrance are not significantly enriched in the population. The p-value is estimated through a bootstrapping procedure, and a confidence interval is returned.

Usage

bootstrap_test(haps, exp_beta = "exp_beta", B = 1000)

Arguments

haps

The output of 'characterize_haplotypes', or another haplotype calling tool. There is one line per haplotype. Must contain the column "beta" and "exp_beta"

exp_beta

The nuame of the column in "haps" that contains the expectation of beta. Defaults to "exp_beta"

B

The number of bootstraps to perform. Default: 1000


jeinson/tompen documentation built on March 18, 2023, 2:59 a.m.