is.mimids: Checks for the 'mimids' Class

View source: R/is.R

is.mimidsR Documentation

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 it is of the mimids class or not.

Details

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

Value

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

Author(s)

Farhad Pishgar

See Also

matchthem

mimids

Examples

#Loading libraries
library(MatchThem)

#Loading the dataset
data(osteoarthritis)

#Multiply imputing the missing values
imputed.datasets <- mice::mice(osteoarthritis, m = 5)

#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)

MatchThem documentation built on July 10, 2023, 1:59 a.m.