Re: [R] Mean and variance of the right-censored data

From: Thomas Lumley <>
Date: Tue 26 Jul 2005 - 00:43:36 EST

On Mon, 25 Jul 2005, Petr Mandys wrote:

> Thank you!
> I'm using this:
> require(NADA)
> var_sf=survfit(Surv(a, !b))
> var_result=new("cenfit", survfit=var_sf)
> Class cenfit has methods to get mean a variance from survfit result. Is
> this correct?

NADA is designed for left censoring. I don't know if it will work for right censoring.

There is at least one problem that hasn't been mentioned yet. Unless your largest observations are uncensored you can't compute the mean or variance without a parametric model.

survfit() in the survival package used to produce something it called the mean, but it wasn't.

         -thomas mailing list PLEASE do read the posting guide! Received on Tue Jul 26 00:49:34 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:34:01 EST