Checks for the wimids Class
is.wimids() function checks whether class of objects is wimids or not.
is.wimids(object)
object |
This argument specifies the object that should be checked to see if is of the |
The class of objects is checked to be of the wimids.
This function returns a logical value indicating whether object is of the wimids class.
Farhad Pishgar
#Loading libraries
library(MatchThem)
#Loading the dataset
data(osteoarthritis)
#Multiply imputing the missing values
imputed.datasets <- mice::mice(osteoarthritis, m = 5)
#Estimating weights of observations in the multiply imputed datasets
weighted.datasets <- weightthem(OSP ~ AGE + SEX + BMI + RAC + SMK,
imputed.datasets,
approach = 'within',
method = 'ps',
estimand = "ATT")
#Checking the 'weighted.datasets' object
is.wimids(weighted.datasets)
is(weighted.datasets)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.