What comes to mind for me is that you have YRDX1 in the formula but yrdx1
in the cuptoints list. R, unlike SAS, is case sensitive, so it is not
connecting those two entries. Does this continue to happen when you correct
the case?
Noah
On Fri, Jul 20, 2018 at 4:32 PM Paige Sheridan <paigesheridan23(a)gmail.com>
wrote:
Hello all,
I am trying to match on 4 year bins around year of diagnosis, it seems
like no matter what cut points I specify (even none) I always get an exact
match on year of diagnosis. It is a numeric variable.
mat4 <- matchit(pc ~ TeachingHospital + sex + ageDx1 + YRDX1 + hrr +
dxtodeath, data=pa, method = "cem", cutpoints = list(ageDx1=8, sex=0,
dxtodeath=dxcut2, TeachingHospital=0, yrdx1=1), keep.all=TRUE)
Thank you,
Paige Sheridan, MPH
*UCSD-SDSU Joint Doctoral Program, Epidemiology*
(503) 720-6857
-
---
MatchIt mailing list served by HUIT
List Address: matchit(a)lists.gking.harvard.edu
Subscribe/Unsubscribe:
http://lists.gking.harvard.edu/mailman/listinfo/ei
MatchIt Software and Documentation:
http://gking.harvard.edu/matchit/
Browse/Search <http://gking.harvard.edu/matchit/Browse/Search> List
Archive:
http://lists.gking.harvard.edu/mailman/private/matchit/
Matchit mailing list
Matchit(a)lists.gking.harvard.edu
To unsubscribe from this list or get other information:
https://lists.gking.harvard.edu/mailman/listinfo/matchit