add_model_matrix: Rebuilds the model matrix for MatchIt objects

Description Usage Arguments Details Value Examples

Description

In order to use estimate Standard Errors with the Abadie and Imben's method the MatchIt object needs to have a model matrix. The model matrix is created based on the subclasses given by the full matching procedure.

Usage

1

Arguments

fit

MatchIt Object

Details

This function is experimental! Most methods for estimating standard errors are only documented for NN matching. Please use with caution!

Value

MatchIt Object with added model matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(MatchIt)
data('lalonde')
m.out  <- matchit(treat ~ educ + black, data = lalonde, method = 'full')
att(obj = m.out, Y = lalonde$re78)
abadie_imbens_se(m.out, lalonde$re78)  # FAILS!
m.out <- add_model_matrix(m.out)
abadie_imbens_se(m.out, lalonde$re78)

## End(Not run)


Search within the MatchItSE package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.