pharmaverse / pharmaverse/tern
[Feature Request]: output model fitting object from s_coxph_pairwise function
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 106
- Forks
- 34
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 6
Description
Feature description
Currently s_coxph_pairwise() only returns summary statistics from the model fitting, is it possible to also return the model fitting object sum_cox (https://github.com/insightsengineering/tern/blob/main/R/survival_coxph_pairwise.R#L102)? This applies to other statistical modeling functions as well. It would be nice to access this model fitting object from the final rtables TableTree object so that users could access other statistical information other than just the HR, CI, p-values etc.
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in R/survival_coxph_pairwise.R around line 102, where s_coxph_pairwise() creates the sum_cox model fitting object. Trace how the result reaches the final rtables TableTree object and compare the requested access with the current summary statistics. Done means users can retrieve the fitting object alongside the existing outputs, with the approach considered for other statistical modeling functions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- analytics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100