print.mimids: Prints a 'mimids' Class Object

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

View source: R/print.mimids.R

Description

The print.mimids() function prints an object of the mimids class.

Usage

1
2
## S3 method for class 'mimids'
print(x, n = 1, digits = getOption("digits"), ...)

Arguments

x

This argument specifies an object of the mimids class.

n

This argument specifies the matched imputed dataset number, intended to print its matching profile. The input must be a positive integer. The default is 1.

digits

This argument specifies minimal number of significant digits.

...

Additional arguments to be passed to the print.mimids() function.

Details

The matching profile of the mimids class objects is printed.

Author(s)

Farhad Pishgar

References

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

See Also

mimids

Examples

 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')

#Printing data of the first imputed dataset
print.1 <- print(matcheddatasets, n = 1)

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