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 | 1 ms |
| Nelson-Aalen, 5,000 observations | 1 ms |
| Cox, 500 rows and 3 covariates | 4 iterations, 54 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