| remove_rarevariants {TwoPhaseInd} | R Documentation | 
A function used in spmle and acoarm to remove rare-variant covariates
Description
It is used to remove rare-variant covariates, which can cause divergence problem.
Usage
remove_rarevariants(data, cutoff = 0.02)
Arguments
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.  | 
Details
The function removes rare-variant covariates.
Value
A logical vector composed of True or False. True means a covariate is rare-variant.
Author(s)
James Y. Dai
Examples
## Load the example data
data(acodata)
result <- remove_rarevariants(acodata[, c("vacc1_evinf","fcgr2a.3")])
[Package TwoPhaseInd version 1.1.2 Index]