Description Usage Arguments Value See Also Examples
View source: R/get_thresh_analytic.R
Compute genome-wide significance (test statistic or p-value) threshold for admixture mapping using analytic approximation to the family-wise error rate. For more details, see Grinde et al. (2019).
1 2 3 4 5 6 7 | get_thresh_analytic(
g,
map,
alpha = 0.05,
type = "pval",
searchint = c(1.96, 8)
)
|
g |
the generations since admixture. |
map |
data frame with m rows and at least 2 columns ('chr' containing chromosome number and 'cM' containing genetic position in centimorgans), where m = no. markers |
alpha |
the level for family-wise error rate control; default is 0.05. |
type |
the type of threshold that should be returned: |
searchint |
the range of test statistic thresholds for |
A single number indicating the estimated significance threshold (either test statistic or p-value).
uniroot
for finding roots of functions
1 2 | get_thresh_analytic(g = 6, map = example_map) # get p-value threshold
get_thresh_analytic(g = 6, map = example_map, type = "stat") # get test statistic threshold
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.