Learn R Programming

MatchThem (version 0.9.0)

is.mimids: Checks for the mimids Class

Description

is.mimids() function checks whether class of objects is mimids or not.

Usage

is.mimids(object)

Arguments

object

This argument specifies the object that should be checked to see if is of the mimids class or not.

Value

This function returns a logical value indicating whether object is of the mimids class.

Details

The class of objects is checked to be of the mimids.

See Also

matchthem

mimids

Examples

Run this code
# NOT RUN {
#Loading the dataset
data(dataset)

#Multiply imputing the missing values
imputed.datasets <- mice(osteoarthritis, m = 5, maxit = 10,
                         method = c("", "", "mean", "polyreg",
                                    "logreg", "logreg", "logreg"))

#Matching the multiply imputed datasets
matched.datasets <- matchthem(OSP ~ AGE + SEX + BMI + RAC + SMK, imputed.datasets,
                              approach = 'within', method = 'nearest')

#Checking the 'matched.datasets' object
is.mimids(matched.datasets)
is(matched.datasets)
# }

Run the code above in your browser using DataLab