is.wimids: Checks for the 'wimids' Class

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

View source: R/is.R

Description

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

Usage

1
is.wimids(object)

Arguments

object

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

Details

The class of objects are checked to be of the wimids.

Value

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

Author(s)

Farhad Pishgar

See Also

weightitmice

wimids

Examples

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

#Imputing missing data points in the'dt.osa' dataset
datasets <- mice(dt.osa, m = 5, maxit = 1,
                 method = c("", "", "mean", "", "polyreg", "logreg", "logreg"))

#Weighting the imputed datasets, 'datasets'
weighteddatasets <- weightitmice(KOA ~ SEX + AGE + SMK, datasets,
                                 approach = 'within', method = 'nearest')

#Checking the 'weighteddatasets' object
is.wimids(weighteddatasets)
is(weighteddatasets)

MatchIt.mice documentation built on Aug. 28, 2019, 1:03 a.m.