[R] Mean and variance of the right-censored data
petr.mandys at matfyz.cz
Mon Jul 25 09:36:44 CEST 2005
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.
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.
On Sun, 24 Jul 2005, jim holtman wrote:
> do what you want? This selects just those values of 'a' that are TRUE in 'b'.
> On 7/24/05, Petr Mandys <petr.mandys at matfyz.cz> wrote:
>> 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!
>> R-help at stat.math.ethz.ch mailing list
>> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> Jim Holtman
> What the problem you are trying to solve?
More information about the R-help