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

From: Petr Mandys <petr.mandys_at_matfyz.cz>
Date: Mon 25 Jul 2005 - 17:36:44 EST

No, it doesn't.

Right-censored data are data with (so-called) censored values. E.g. there is a newsvendor and he sells newspapers for a week.

Mon: 77
Tue: 56
Wed: 60
Thu: 80
Fri: 85
Sat: 59
Sun: 48

This values are numbers of sold pieces from Monday to Sunday. And he sold out newspapers on Wednesday and on Thursday. This is an example of right-censored data. He could sold more pieces in that two days.

And I need the variance and mean of data like this.

Thank you!

On Sun, 24 Jul 2005, jim holtman wrote:

> does
>
> mean(a[b])
> var(a[b])
>
> do what you want? This selects just those values of 'a' that are TRUE in 'b'.
>
> On 7/24/05, Petr Mandys <petr.mandys@matfyz.cz> 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
>>
>
>
> --
> Jim Holtman
>
> What the problem you are trying to solve?
>



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 Mon Jul 25 17:42:10 2005

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