calc_f_stat | R Documentation |
Calculates portion of variance explained and F-statistic. If the data is lacking key information, i.e. allele frequencies, sample size or consists of only one SNP, then the approximate F-statistic will be used instead: F = b ** 2 / SE ** 2.
calc_f_stat(dat, f_cutoff = 10, force_approx = FALSE, verbose = TRUE)
dat |
Data.frame from do_mr() |
f_cutoff |
F-statistic cutoff (Optional) |
force_approx |
Force to use the approximate F-statistic instead (Optional, boolean) |
verbose |
Display verbose information (Optional, boolean) |
Modified 'dat' data.frame (if f_cutoff > 0 supplied)
[do_mr()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.