pub struct CompetingRisksPredictResult {Show 16 fields
pub times: Vec<f64>,
pub endpoint_names: Vec<String>,
pub hazard: Vec<Array2<f64>>,
pub survival: Vec<Array2<f64>>,
pub cumulative_hazard: Vec<Array2<f64>>,
pub cif: Vec<Array2<f64>>,
pub overall_survival: Array2<f64>,
pub linear_predictor: Vec<Array1<f64>>,
pub likelihood_mode: SurvivalLikelihoodMode,
pub covariance_source: Option<SurvivalPredictionCovarianceMode>,
pub hazard_se: Option<Vec<Array2<f64>>>,
pub survival_se: Option<Vec<Array2<f64>>>,
pub cumulative_hazard_se: Option<Vec<Array2<f64>>>,
pub cif_se: Option<Vec<Array2<f64>>>,
pub overall_survival_se: Option<Array2<f64>>,
pub eta_se: Option<Vec<Array1<f64>>>,
}Expand description
Joint cause-specific competing-risks prediction result.
Fields§
§times: Vec<f64>§endpoint_names: Vec<String>§hazard: Vec<Array2<f64>>Cause-specific instantaneous hazards, shaped endpoint x row x time.
survival: Vec<Array2<f64>>Endpoint-specific survival surfaces exp(-H_k(t)), endpoint x row x time.
cumulative_hazard: Vec<Array2<f64>>Cause-specific cumulative hazards, endpoint x row x time.
cif: Vec<Array2<f64>>Aalen-Johansen cumulative incidence, endpoint x row x time.
overall_survival: Array2<f64>Overall survival exp(-sum_k H_k(t)), row x time.
linear_predictor: Vec<Array1<f64>>Per-endpoint linear predictor at each row’s own exit time, endpoint x row.
likelihood_mode: SurvivalLikelihoodMode§covariance_source: Option<SurvivalPredictionCovarianceMode>Exact covariance definition used for posterior standard errors.
None means no uncertainty was requested.
hazard_se: Option<Vec<Array2<f64>>>Posterior standard deviation of each cause-specific hazard surface.
survival_se: Option<Vec<Array2<f64>>>Posterior standard deviation of each endpoint-specific survival surface.
cumulative_hazard_se: Option<Vec<Array2<f64>>>Posterior standard deviation of each cause-specific cumulative hazard.
cif_se: Option<Vec<Array2<f64>>>Posterior standard deviation of each cause-specific cumulative incidence.
overall_survival_se: Option<Array2<f64>>Posterior standard deviation of the all-cause survival surface.
eta_se: Option<Vec<Array1<f64>>>Posterior standard deviation of each cause-specific linear predictor.
Implementations§
Source§impl CompetingRisksPredictResult
impl CompetingRisksPredictResult
Sourcepub fn restricted_mean_overall_survival_time(
&self,
tau: f64,
) -> Option<Array1<f64>>
pub fn restricted_mean_overall_survival_time( &self, tau: f64, ) -> Option<Array1<f64>>
Per-row restricted mean survival time of the OVERALL (all-cause) survival
curve, \int_0^{tau} S_overall_i(t) dt. For competing risks the relevant
restricted-mean summary is taken on the all-cause survival
exp(-sum_k H_k(t)); cause-specific restricted-mean-time-lost is
tau - RMST partitioned by CIF and is left to the CIF surface directly.
Auto Trait Implementations§
impl Freeze for CompetingRisksPredictResult
impl RefUnwindSafe for CompetingRisksPredictResult
impl Send for CompetingRisksPredictResult
impl Sync for CompetingRisksPredictResult
impl Unpin for CompetingRisksPredictResult
impl UnsafeUnpin for CompetingRisksPredictResult
impl UnwindSafe for CompetingRisksPredictResult
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.