Displaying 1 result from an estimated 1 matches for "lsale".
Did you mean:
sale
2010 Apr 11
1
Peculiar behaviour with MatchIt and a function
Folks,
I have a strange situation where:
library(MatchIt)
f <- function(d) {
m <- matchit(treatment ~ lsales + major.industry,
data=d, method="nearest", discard="hull.treat")
treatmentfirms <- match.data(m, group="treat")
list(m=m, treatmentfirms=treatmentfirms)
}
res <- f(ex)
does not work at the match.data() call, while the identical lin...