computes the PheWAS analysis on ICD codes
1 2 3 | compute_cim_phewas(cim, patients, cim_min_occur = 5, zero_controls_add = 2,
with_boot = FALSE, perm = 1000, boot_all = FALSE,
fdr_threshold = 0.05, progress = NULL, cores = 1)
|
cim |
cim data.frame from the 'get_data_from_num' function |
patients |
patients data.frame from the 'get_data_from_num' function |
cim_min_occur |
integer. minimum number of occurrences of the biological test result in the dataset to be analyzed |
zero_controls_add |
integer. number of simulated patients to add to the control group for a given if there is no occurrence of this concept in the control group. This trick allows to compute a pvalue in this situation. |
with_boot |
logical. perform a bootstrap on the results |
perm |
integer. number of permutations for the bootstrap |
boot_all |
logical. perform a bootstrap on all the results or only on the results with FDR corrected p.value < fdr_threshold |
fdr_threshold |
maximum FDR corrected p.value to perform the bootstrap |
progress |
progress bar object |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.