match_ind_maf: Function to downsample independent SNPs to match MAF...

Description Usage Arguments Details Value

View source: R/flexible_cfdr.R

Description

Matches MAF distribution of independent set of SNPs to MAF distribution of whole set of SNPs to avoid MAF-based confounding.

Usage

1
match_ind_maf(maf, indep_index)

Arguments

maf

minor allele frequencies of (all) SNPs

indep_index

indices of independent SNPs

Details

Must supply maf values from the whole data set, not just the independent SNPs.

Value

indices of independent SNP in chosen in sample


annahutch/fcfdr documentation built on Feb. 12, 2022, 6:49 a.m.