is.mimipo | R Documentation |
mimipo
Classis.mimipo()
function checks whether class of objects is mimipo
or not.
is.mimipo(object)
object |
This argument specifies the object that should be checked to see if it is of the |
The class of objects is checked to be of the mimipo
.
This function returns a logical value indicating whether object
is of the mimipo
class.
Farhad Pishgar
pool()
mimipo()
#Loading libraries
library(survey)
#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 = 'glm',
estimand = "ATT")
#Analyzing the weighted datasets
models <- with(data = weighted.datasets,
exp = svyglm(KOA ~ OSP, family = binomial))
#Pooling results obtained from analysing the datasets
results <- pool(models)
#Checking the 'results' object
is.mimipo(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.