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

Petr Mandys petr.mandys at matfyz.cz
Mon Jul 25 16:21:05 CEST 2005


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?

Pete

On Mon, 25 Jul 2005, Don MacQueen wrote:

> The survival package has functions for fitting models to right censored 
> data.
>
> require(survival)
> ?survfit
> ?Surv
>
> -Don
>
> At 12:17 AM +0200 7/25/05, Petr Mandys wrote:
>> Hi,
>> 
>> I need to get mean and variance of right censored data. How can I do that?
>> 
>> I have a vector of values (called a) and vector of booleans (whether value
>> is censored) (called b). What to do with this? Sorry, I'm R beginner.
>> 
>> Thank you!
>> 
>> Pete
>> 
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! 
>> http://www.R-project.org/posting-guide.html
>
>
> -- 
> --------------------------------------
> Don MacQueen
> Environmental Protection Department
> Lawrence Livermore National Laboratory
> Livermore, CA, USA
> --------------------------------------
>




More information about the R-help mailing list