Skip to content

Unify strata helpers - #403

Open
hfrick wants to merge 2 commits into
mainfrom
unify-strata-helpers
Open

Unify strata helpers#403
hfrick wants to merge 2 commits into
mainfrom
unify-strata-helpers

Conversation

@hfrick

@hfrick hfrick commented Aug 4, 2026

Copy link
Copy Markdown
Member

closes #65

Comment thread R/utils.R Outdated
Comment on lines +76 to +84
mod_frame <- stats::model.frame(
trms,
data,
xlev = xlev,
na.action = na.action
)

strata_cols <- attr(trms, "specials")$strata
strata <- mod_frame[, strata_cols]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this was more straightforward than using survival::untangle.specials() to me

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.

unify compute_strata() and get_strata()

1 participant