I'm using MatchIt to match based on propensity score and then I'm checking the standardized difference. I tried to manually calculate the standardized difference for some of my matching variables and I'm not getting the same results as the output of the model.
#run the model
ps<-matchit(y ~ ., data=mydata, method = "nearest", distance = "logit")
#store the results as a data frame
comp <- as.data.frame(summary(ps, standardize = TRUE)["sum.matched"])
#print the results
comp[, "sum.matched.Std..Mean.Diff." , drop=FALSE]
My question here is: Does anyone know the formula to manually calculate the standardized differences that is used in the matchIt package? I'm interested in the formula for standardized difference in means and in proportions (are they different? Maybe that's why)