Description Usage Arguments Details Value Author(s) References See Also Examples
The matchitmice.data()
function extracts matching data from an object of the mimids
class.
1 | matchitmice.data(object, n = 1)
|
object |
This argument specifies an object of the |
n |
This argument specifies the matched imputed dataset number, intended to extract its matching data. The input must be a positive integer. The default is |
The matched datasets wihtin the mimids
class object are extracted.
This function returns a subset of the imputed dataset after matching with just the matched observations from treatment and control groups.
Farhad Pishgar
Daniel Ho, Kosuke Imai, Gary King, and Elizabeth Stuart (2007). Matching as Nonparametric Preprocessing for Reducing Model Dependence in Parametric Causal Inference. Political Analysis, 15(3): 199-236. http://gking.harvard.edu/files/abs/matchp-abs.shtml
1 2 3 4 5 6 7 8 9 10 11 12 13 | #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"))
#Matching the imputed datasets, 'datasets'
matcheddatasets <- matchitmice(KOA ~ SEX + AGE + SMK, datasets,
approach = 'within', method = 'exact')
#Extracting data of the first imputed dataset
data.1 <- matchitmice.data(matcheddatasets, n = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.