Docs for new surv verb (#1807)

This commit is contained in:
John Kerl 2025-05-15 19:41:58 -04:00 committed by GitHub
parent d14dc76318
commit ea242a242a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 1 deletions

View file

@ -3857,6 +3857,21 @@ mean - - 5000.5 0.49860196816795804 0.5062057444929905
median pan pan 5001 0.5011592202840128 0.5060212582772865
</pre>
## surv
<pre class="pre-highlight-in-pair">
<b>mlr surv --help</b>
</pre>
<pre class="pre-non-highlight-in-pair">
Usage: mlr surv -d {duration-field} -s {status-field}
Estimate Kaplan-Meier survival curve (right-censored).
Options:
-d {field} Name of duration field (time-to-event or censoring).
-s {field} Name of status field (0=censored, 1=event).
-h, --help Show this message.
</pre>
## tac
<pre class="pre-highlight-in-pair">

View file

@ -1161,6 +1161,12 @@ GENMD-RUN-COMMAND
mlr --from data/medium --opprint summary --transpose -a mean,median,mode
GENMD-EOF
## surv
GENMD-RUN-COMMAND
mlr surv --help
GENMD-EOF
## tac
GENMD-RUN-COMMAND

View file

@ -72,7 +72,6 @@ func channelWriterHandleBatch(
// XXX also make sure this results in exit 1 & goroutine cleanup
if writerOptions.FailOnDataError && record != nil {
ok := true
fmt.Printf("AAA %#v", record)
for pe := record.Head; pe != nil; pe = pe.Next {
if pe.Value.IsError() {
context := recordAndContext.Context