Description Usage Arguments Details Value Examples
View source: R/rebuild-model-matrix.R
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.
1 | add_model_matrix(fit)
|
fit |
MatchIt Object |
This function is experimental! Most methods for estimating standard errors are only documented for NN matching. Please use with caution!
MatchIt Object with added model matrix
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.