getting errors when running this file  
http://r.789695.n4.nabble.com/file/n3605311/il1ra_status.txt
il1ra_status.txt 


> Age.co<-c(dat2b$Dr_Age)
> Sex.co<-as.factor(dat2b$Sex)
> casecont.co<-as.factor(dat2b$Self_T1D)
> stat.co<-as.factor(dat2b$status)
>
> m <- matchControls(stat.co~Sex.co+Age.co,contlabel="IL1Ra_H")
Error in retval[k] <- controls[which.is.min(d[cases[k], controls])] :
  replacement has length zero
In addition: Warning message:
In min(x, na.rm = TRUE) : no non-missing arguments to min; returning Inf

I would appreciate help to solve this.
Thanks
Sharad 

--
View this message in context: 
http://r.789695.n4.nabble.com/matching-by-gender-and-age-tp3552825p3605311.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to