pub struct SurvfuncRight {
pub surv_times: Array1<f64>,
pub surv_prob: Array1<f64>,
pub surv_prob_se: Array1<f64>,
pub n_risk: Array1<f64>,
pub n_events: Array1<f64>,
}Expand description
The Kaplan–Meier estimate of a right-censored survival function.
Construct with SurvfuncRight::new, passing observation times and a
status indicator (1.0 = event/failure observed, 0.0 = right-censored).
Fields§
§surv_times: Array1<f64>Distinct event times, ascending. Only times with at least one failure.
surv_prob: Array1<f64>The product-limit survival probability S(t) at each event time.
surv_prob_se: Array1<f64>Greenwood standard error of S(t) at each event time (NaN where the
risk set is exhausted, i.e. n == d).
n_risk: Array1<f64>Size of the risk set just prior to each event time.
n_events: Array1<f64>Number of events (failures) at each event time.
Implementations§
Trait Implementations§
Source§impl Clone for SurvfuncRight
impl Clone for SurvfuncRight
Source§fn clone(&self) -> SurvfuncRight
fn clone(&self) -> SurvfuncRight
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SurvfuncRight
impl RefUnwindSafe for SurvfuncRight
impl Send for SurvfuncRight
impl Sync for SurvfuncRight
impl Unpin for SurvfuncRight
impl UnsafeUnpin for SurvfuncRight
impl UnwindSafe for SurvfuncRight
Blanket Implementations§
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
Mutably borrows from an owned value. Read more