View source: R/remove_rarevariants.R
remove_rarevariants | R Documentation |
It is used to remove rare-variant covariates, which can cause divergence problem.
remove_rarevariants(data, cutoff = 0.02)
data |
A dataframe composed of covariates. |
cutoff |
Proportion cutoff. If data composed of more than (1-cutoff) proportion of a constant value, we call it rare-variant. |
The function removes rare-variant covariates.
A logical vector composed of True or False. True means a covariate is rare-variant.
James Y. Dai
## Load the example data data(acodata) result <- remove_rarevariants(acodata[, c("vacc1_evinf","fcgr2a.3")])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.