Survival analysis toolkit for MoonBit
moon add Lyl66655/moon-survival
moon run --target native cmd/exampleimport {
"Lyl66655/moon-survival/src",
}# Run the end-to-end example
moon run --target native cmd/example
# Run the deterministic performance fixture
moon run --target native --release cmd/benchmarkmoon.mod module metadata and package version
src/moon.pkg public survival-analysis package
src/*.mbt estimators, models, diagnostics, reports
src/pkg.generated.mbti generated public API summary
cmd/example/ runnable API example
cmd/benchmark/ deterministic benchmark executable
.github/workflows/check.yml cross-platform quality checks
LICENSE Apache-2.0 license text| Workload | Result |
|---|---|
| Kaplan-Meier, 5,000 observations | 5,000 steps, 1–3 ms |
| Nelson-Aalen, 5,000 observations | 5,000 steps, 0–1 ms |
| Cox, 500 rows and 3 covariates | 4 iterations, converged, 54–58 ms |
| Exponential parametric fit, 5,000 observations | 0–1 ms |
| IPCW weights and curve, 5,000 observations | 5,000 steps, 28–32 ms |
| Two-group KM summary, 5,000 observations per group | 2 curves, 2–6 ms |
moon fmt --check
moon check --target all --deny-warn
moon test --target wasm-gc --deny-warn
moon test --target native --deny-warn
moon infoSurvival analysis toolkit for MoonBit