View source: R/workflow_utils.R
determine_n_permutations | R Documentation |
This function estimates, based on the number of leading 0's in an initial p-value, how many permutations will be needed to calculate an empirical p-value out to the user-specified number of significant figures
determine_n_permutations(leading_0s, desired_sig_figs)
leading_0s |
An integer for the number of 0's between the decimal point and the first nonzero value in the maximum p-value for SNP windows that will be included in the subset of interest |
desired_sig_figs |
An integer for the number of significant figures the user desires for empirical p-values |
An integer, representing the number of permutations expected to be needed to calculate an empirical p-value with the desired level of accuracy
# 10,000 permutations should be needed to calculate p-values below 0.01
# (e.g. 0.0095 has two leading 0's) out to two significant figures
determine_n_permutations(leading_0s = 2, desired_sig_figs = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.