Please adhere to the posting guide (i.e., provide a sample of self contained code and provide the error message). And what does "but it is not working" mean? Is there an error code?
rueu wrote: > > hello: > my data looks like: > time1 time2 event catagoria > > 2004 2006 1 C > 2004 2005 0 C > > 2005 2010 1 E > > 2007 2009 1 C > > 2006 2007 0 E > > 2008 2010 0 C > > 2008 2010 1 E > ... > > > and the census interval is 1 year > > I have tried this > > surara<-survfit(Surv(time1,time2,event,type="interval")~categoria) > > but it is not working > [[alternative HTML version deleted]] > > > ______________________________________________ > 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. > -- View this message in context: http://r.789695.n4.nabble.com/survival-analysis-interval-censored-data-tp3845269p3846205.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.