Hi, all,
I want to run matchit on my computer. Here is my code:
mout<-matchit(treat ~ Age+Gender..M.F.+stage,data=D1,method = "nearest",
distance = "logit",na.action=na.pass)
It always gave me error message:
Missing values exist in the data
I tried with na.action and without na.action. Both of them does not work.
I checked all the four variables in the formula, and all of them showing
that sum(is.na(D1$var))=0. What is the problem? Thanks everyone.
Best,