remove_missingdata {TwoPhaseInd} | R Documentation |
A function used in acoarm to remove missing data
Description
It is used to remove samples which have NA/missing data in covariates.
Usage
remove_missingdata(data)
Arguments
data |
data is a dataframe. |
Details
The function removes samples (by rows) which have NA/missing data.
Value
A list of the following components.
idx |
The indices of rows without missing values |
data |
The dataframe without missing values |
Author(s)
James Y. Dai
Examples
## Load the example data
data(acodata)
result <- remove_missingdata(acodata[, c("vacc1_evinf","fcgr2a.3")])
[Package TwoPhaseInd version 1.1.2 Index]