Skip to content

Shorten survival-estimator macro names (hsurvkmf -> hskmf, etc.) - #77

Merged
d-morrison merged 1 commit into
mainfrom
claude/issue-75-rme-epi204-iruw13
Jul 3, 2026
Merged

d-morrison merged 1 commit into
mainfrom
claude/issue-75-rme-epi204-iruw13

Conversation

@d-morrison

Copy link
Copy Markdown
Owner

Summary

  • Follow-up to #76 (issue create macros for common survival function estimators #75): shortens the survival-estimator macro names per request.
  • Renames \hsurvemp/\hsurvkm/\hsurvnaa (and their f-suffixed function-call forms) to \hsemp/\hskm/\hsnaa.
  • Updates the matching interpretations.tsv entries. Pure rename — no change in semantics or composition (still built on the existing \hsurv hat-S macro).

Test plan

This is a rename-only change; downstream PRs d-morrison/rme#978 and ucdavis/epi204#358 will be updated to use the new names once this merges.


Generated by Claude Code

Renames \hsurvemp/\hsurvkm/\hsurvnaa (and their f-suffixed function
forms) to \hsemp/\hskm/\hsnaa, dropping the redundant "urv" now that
the \hs prefix combined with the estimator subscript is unambiguous.
Copilot AI review requested due to automatic review settings July 3, 2026 06:37
d-morrison pushed a commit to d-morrison/rme that referenced this pull request Jul 3, 2026
Follows the rename in d-morrison/macros#77: \hsurvkmf -> \hskmf,
\hsurvnaaf -> \hsnaaf, and the corresponding zero-arg/emp forms.
Bumps latex-macros to pick up the rename.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the survival-estimator “hat-S” macros to shorter, more ergonomic names while keeping their underlying composition unchanged (still built on \hsurv with estimator-label subscripts), and updates the macro interpretation registry accordingly.

Changes:

  • Renamed \hsurvemp, \hsurvkm, \hsurvnaa\hsemp, \hskm, \hsnaa.
  • Renamed function-call variants \hsurvempf, \hsurvkmf, \hsurvnaaf\hsempf, \hskmf, \hsnaaf.
  • Updated interpretations.tsv to match the new macro names (no missing stale entries found in-repo).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
macros.qmd Renames the survival-estimator macros and their function-call forms.
interpretations.tsv Updates the macro interpretation rows to match the renamed commands.

Comment thread macros.qmd
@d-morrison
d-morrison merged commit 27d9d11 into main Jul 3, 2026
6 checks passed
@d-morrison
d-morrison deleted the claude/issue-75-rme-epi204-iruw13 branch July 3, 2026 06:44
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.

d-morrison added a commit to d-morrison/rme that referenced this pull request Jul 4, 2026
* Use new survival-estimator macros for KM/Nelson-Aalen notation

Replace ad hoc \hat{S}_{KM}(t)/\hat{S}_{NA}(t)-style LaTeX with the
\hsurvkmf{}/\hsurvnaaf{} macros added in d-morrison/macros#76 (issue
d-morrison/macros#75), across the KM/NA estimator definitions,
derivations, exercises, and the competing-risks and midterm-review
chapters. Bumps the latex-macros submodule to pick up the new macros.

* Point latex-macros submodule at merged main (macros#76)

Re-points from the macros#76 branch commit to main now that it has
merged.

* Rename to shortened survival-estimator macros (hskmf, hsnaaf, etc.)

Follows the rename in d-morrison/macros#77: \hsurvkmf -> \hskmf,
\hsurvnaaf -> \hsnaaf, and the corresponding zero-arg/emp forms.
Bumps latex-macros to pick up the rename.

* Point latex-macros submodule at merged main (macros#77)

Re-points from the macros#77 branch commit to main now that it has
merged.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants