我通过 MatchIt 和 optmatch 包执行了最佳匹配:
library(MatchIt)
library(optmatch)
data(lalonde)
optimal <- matchit(treat ~ age + educ + black, data = lalonde, method = "optimal", ratio = 2)
smry.opti <- summary(optimal, standardize = TRUE)
摘要看起来不错,但我总是收到以下警告消息:
"In fullmatch(d, min.controls = ratio, max.controls = ratio, omit.fraction = (n0 - :
Without 'data' argument the order of the match is not guaranteed
to be the same as your original data."
我发现了一些描述类似问题的帖子。有些人回复说应该忽略警告消息:https://lists.gking.harvard.edu/pipermail/matchit/2013-August/000538.html https://lists.gking.harvard.edu/pipermail/matchit/2013-August/000538.html
我应该更改代码中的某些内容还是可以忽略警告消息?
预先非常感谢您!
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)