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

From: Petr Mandys <petr.mandys_at_matfyz.cz>
Date: Tue 26 Jul 2005 - 00:21:05 EST

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@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
> --------------------------------------
>



R-help@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 Received on Tue Jul 26 00:28:27 2005

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