is.mimids: Checks for the 'mimids' Class

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/is.R

Description

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

Usage

1
is.mimids(object)

Arguments

object

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

Details

The class of objects are 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

matchitmice

mimids

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Loading the dataset
data(dataset)

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

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

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

FarhadPishgar/MatchIt.mice documentation built on Sept. 18, 2019, 11:52 a.m.