tally_p_null | R Documentation |
These functions are used to calculate empirical p-values given initial p-values and null p-values from 'SKAT'.
tally_p_null(p_table)
p_table |
a data frame or matrix with a row for each SNP window and a column for each p-value resulting from a permuted null model |
Prior to completion of jobs by cores in 'MTMC-SKAT', the number of p-values above or below the in initial p-value are calculated using 'tally_p_null'. This reduces the load of data to be returned. Empirical p-values are then calculated from all returned data using 'p_empirical_from_tally'.
a data frame with four columns: 1) position, in base pairs, for the center of a SNP; 2) the original p-value for the given SNP window, obtained by SKAT without resampling; 3) The number of permuted p-values from a given thread that are above the original p-value for a given window; and 4) The number of permuted p-values from a given thread that are below the original p-value for a given window
## Not run: sample_p_null_tallies <- tally_p_null(sample_p_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.