censored_info {ShrinkageTrees} | R Documentation |
Compute mean estimate for censored data
Description
Estimates the mean and standard deviation for right-censored survival data.
Uses the afthd
package if available (placeholder), else survival
, and
otherwise falls back to the naive mean among observed events.
Usage
censored_info(y, status)
Arguments
y |
Numeric vector of (log-transformed) survival times. |
status |
Numeric vector; event indicator (1 = event, 0 = censored). |
Value
A list with elements:
mu |
Estimated mean of survival times. |
sd |
Estimated standard deviation of survival times. |
[Package ShrinkageTrees version 1.0.0 Index]