Learn R Programming

ShrinkageTrees (version 1.0.0)

censored_info: 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)

Value

A list with elements:

mu

Estimated mean of survival times.

sd

Estimated standard deviation of survival times.

Arguments

y

Numeric vector of (log-transformed) survival times.

status

Numeric vector; event indicator (1 = event, 0 = censored).