Skip to main content

solow_duration/
lib.rs

1//! # solow-duration
2//!
3//! Survival / duration analysis for the Solow statistical-computing stack.
4//!
5//! * [`SurvfuncRight`] — the Kaplan–Meier (product-limit) estimator of a
6//!   right-censored survival function, with Greenwood standard errors.
7//! * [`PHReg`] — Cox proportional-hazards regression estimated by maximizing
8//!   the Breslow partial log-likelihood, exposing coefficients, standard
9//!   errors, z-statistics, p-values and the partial log-likelihood.
10//!
11//! Both estimators are cross-validated against golden reference values frozen
12//! in `tests/fixtures/duration.json`.
13
14mod cumincidence;
15mod hazard;
16mod phreg_ties;
17mod survdiff;
18mod survfunc;
19
20pub use cumincidence::CumIncidenceRight;
21pub use hazard::{PHReg, PHRegResults};
22pub use phreg_ties::{PHRegTies, PHRegTiesResults, Ties};
23pub use survdiff::{survdiff, SurvDiffResult, WeightType};
24pub use survfunc::SurvfuncRight;