Description Usage Arguments Details Value Author(s) See Also Examples
is.mimids()
function checks whether class of objects is mimids
or not.
1 | is.mimids(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 mimids
.
This function returns a logical value indicating whether object
is of the mimids
class.
Farhad Pishgar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.