I am having bit of difficultly understanding the process of using censored data. I know there are plenty of R packages that can do this for the usual two-parameter Weibull likelihood formula, but I would like to apply it on an extended Weibull model that incorporates more parameters. Hence the need to incorporate a custom likelihood that can estimate these extra parameters. I'm also confused as to whether I can apply this to data where the equipment does not all have the same start time.
Say I have some likelihood function, f(t), and some reliability function R(t) that incorporates the extra parameters. I also have a dataset that has both failed and un-failed equipment, associated with their current operating age. According to 1, the censored likelihood is:
where "r is the number of failures and n is the number at risk."
Say I have the following data:
equip_id age failed
1 22.50548 0
2 31.79649 1
3 32.53883 1
4 21.90784 0
5 38.48035 1
I'm assuming that n=5 and r=3. So the first iteration would be:
f(31.79649) x [R(38.48035)]^(5-3)
second iteration is:
f(32.53883) x [R(38.48035)]^(5-3)
and third iteration is:
f(38.48035) x [R(38.48035)]^(5-3)
With the likelihood value being the joint probability across these iterations. (in practice using the log-likelihood to avoid precision loss).
Is this the appropriate way to perform this on this type of data?
1 Ebeling, C.E., 2019. An introduction to reliability and maintainability engineering. Waveland Press.

flexsurvpackage. I pouring over the documentation and think it will make implementation easier. – coolhand Mar 30 '23 at 21:03