Dear all,
If I want to use different* distance option* which is not in the package,
how do I combine with the package?
Because I want to use linear regression, or lm(), to calculate propensity
scores and do matching.
Should I need to create a similar function like the following and use
matchit function and that function together, or maybe other solutions?
distance2logit <- function(formula, data, ...) {
res <- glm(formula, data, family=binomial(logit), ...)
return(list(model = res, distance = fitted(res)))
}
Thank you so much
*Wan-Yi Chou (May Chou), Master*
*Management Science, **National Chiao Tung University*
*國立交通大學管理科學研究所 *
*周宛誼*|*Email mayritaspring(a)gmail.com <mayritaspring(a)gmail.com> *