从MatchIt包中获取距离矩阵

时间:2017-07-12 18:30:26

标签: r

使用具有Mahalanobis距离的MatchIt包时是否可以获得距离矩阵?

library("MatchIt")
m.out <- matchit(treat ~ re74 + re75 + educ + black + hispan + age, data = lalonde, distance="mahalanobis",method = "nearest")

# this contains only NAs
m.out$distance

0 个答案:

没有答案