I'm using R package matchit for propensity score matching analysis.
m.out3<-matchit(data=b4psm5, treat~high_school_gpa+male+pell+black+hispanic+asian+other+race_miss,method="nearest", ratio=1,exact=c("cohortid"), m.order="random", caliper=0.25)
All variables are in the data, but I'm getting this error message, which I think is related to the exact matching command.
Error in Ops.data.frame(exact[itert, k], exact[clabels, k]) :
‘!=’ only defined for equally-sized data frames
Could you advise? I don't have a reproducible dataset.