Le lundi 25 mars 2013 à 05:55 -0700, rm a écrit : > Say, that I have two observations, one from time 0 to time 50, and a second > from time 0 to time 100, both of which are known to have failed, i.e. no > censoring. I would like to give double the weight to the second observation. > > This is what I’ve tried to implement in the both pieces of code. Both pieces > of code give the same survival curve but different confidence intervals. > Why? How should I fix the code to get the “correct” confidence intervals? If the weights you cant to use are sampling weights (as I suspect), use the function survfitkm() from the survey package.
Regards > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Weighted-Kaplan-Meier-estimates-with-R-with-confidence-intervals-tp4662360p4662384.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. ______________________________________________ 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.