Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retire make_afun usage #1375

Open
3 of 20 tasks
shajoezhu opened this issue Jan 17, 2025 · 3 comments
Open
3 of 20 tasks

retire make_afun usage #1375

shajoezhu opened this issue Jan 17, 2025 · 3 comments

Comments

@shajoezhu
Copy link
Contributor

shajoezhu commented Jan 17, 2025

Feature description

retire make_afun usage

Batch 1

  • R/prop_diff.R
  • R/prop_diff_test.R
  • R/summarize_num_patients.R
  • R/count_cumulative.R
  • R/count_missed_doses.R

Batch 2

  • R/summarize_ancova.R
  • R/summarize_glm_count.R

Batch 3

  • R/abnormal.R
  • R/abnormal_by_baseline.R
  • R/abnormal_by_marked.R
  • R/abnormal_by_worst_grade.R
  • R/abnormal_by_worst_grade_worsen.R

Batch 4

  • R/estimate_multinomial_rsp.R
  • R/estimate_proportion.R
  • R/odds_ratio.R
  • R/survival_coxph_pairwise.R
  • R/survival_timepoint.R

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.
@Melkiades
Copy link
Contributor

This would be amazing

@danielinteractive
Copy link
Contributor

Interesting, what is the rationale and replacement strategy?
(@iaugusty I found it!)

@Melkiades
Copy link
Contributor

Interesting, what is the rationale and replacement strategy? (@iaugusty I found it!)

make_a_fun is a bit of a black-box function that is very hard to debug. It is also challenging to track down how a variable is sent to the analysis function from the top level and in which levels (a_ or s_) it will be available. In practice, we had many issues with unclear definitions of default values through different nested calls of make_a_fun. For these reasons, we are moving towards directly only {rtables} code. This makes it easier to read for future users or people that start working directly from {rtables}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants