powered by
It is used to remove rare-variant covariates, which can cause divergence problem.
remove_rarevariants(data, cutoff = 0.02)
A dataframe composed of covariates.
Proportion cutoff. If data composed of more than (1-cutoff) proportion of a constant value, we call it rare-variant.
A logical vector composed of True or False. True means a covariate is rare-variant.
The function removes rare-variant covariates.
# NOT RUN { ## Load the example data data(acodata) result <- remove_rarevariants(acodata[, c("vacc1_evinf","fcgr2a.3")]) # }
Run the code above in your browser using DataLab