I'm using propensity score matching to see if there are any trends in my data with RStudio. From my understanding, all of the covariates are supposed to generate a standard mean difference so I can see if they are balanced well and move forward with the regression. My issue is that when I generate the summary, I can only see one covariate, 'age' in the distance column, and it lists out every age I have in the dataset instead of the other four covariates in the data set.
This is the code I'm using:
opgt2014 <- data.frame(X2014_Binary_Data)
library(sandwich)
library(MatchIt)
library(lmtest)
match_obj <- matchit(Chief.Complaint ~ Age + Sex + Triage + Mode.Arr,
data = opgt2014, method = "nearest", distance ="glm", ratio = 1,
replace = FALSE)
summary(match_obj)
And this is an example of what each column of the data looks like:
Age: 2Y 06M | 10M 20D | 36 | 42 Sex: 1 | 0 | 1 | 1 Triage: 1 | 2 | 3 | 1 Chief Complaint: 0 | 0 | 1 | 0 Mode Arr: 3 | 4 | 0 | 1
Any idea what is going on here? I'm new to coding, so any help is appreciated.