add_model_matrix: Rebuilds the model matrix for MatchIt objects

Description Usage Arguments Details Value Examples

View source: R/rebuild-model-matrix.R

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)

MatchItSE documentation built on May 29, 2017, 4:30 p.m.

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