Skip to content

Commit

Permalink
Merge 4ac191b into 32bf74e
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua authored Jul 8, 2023
2 parents 32bf74e + 4ac191b commit bfe2840
Show file tree
Hide file tree
Showing 23 changed files with 1,412 additions and 716 deletions.
14 changes: 5 additions & 9 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# Generated by roxygen2: do not edit by hand

S3method(a_compare,character)
S3method(a_compare,factor)
S3method(a_compare,logical)
S3method(a_compare,numeric)
S3method(a_summary,character)
S3method(a_summary,factor)
S3method(a_summary,logical)
S3method(a_summary,default)
S3method(a_summary,numeric)
S3method(as.rtable,data.frame)
S3method(h_coxreg_inter_effect,character)
Expand All @@ -29,7 +23,6 @@ S3method(tidy,glm)
S3method(tidy,step)
S3method(tidy,summary.coxph)
export(CombinationFunction)
export(a_compare)
export(a_count_occurrences)
export(a_count_occurrences_by_grade)
export(a_count_patients_sum_exposure)
Expand All @@ -42,6 +35,7 @@ export(a_odds_ratio)
export(a_proportion)
export(a_proportion_diff)
export(a_summary)
export(a_summary_output)
export(add_rowcounts)
export(aesi_label)
export(analyze_num_patients)
Expand Down Expand Up @@ -270,7 +264,9 @@ export(summarize_num_patients)
export(summarize_occurrences_by_grade)
export(summarize_patients_events_in_cols)
export(summarize_patients_exposure_in_cols)
export(summarize_vars)
export(summary_custom)
export(summary_formats)
export(summary_labels)
export(surv_time)
export(surv_timepoint)
export(tabulate_rsp_biomarkers)
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

### Enhancements
* Added method for `character` class to `h_coxreg_inter_effect` enabling `character` covariates in `summarize_coxreg`.
* Refactored `a_summary` to no longer use helper function `create_afun_summary`.
* Refactored `summarize_vars` and `compare_vars` to use refactored `a_summary`.
* Created new internal helper function `ungroup_stats` to ungroup and format statistics calculated for factor variables.
* Started deprecation cycle for `summarize_vars` and `control_summarize_vars`. Renamed into `analyze_vars` and `control_analyze_vars` to reflect underlying `rtables` machinery while keeping backward compatibility with aliases.
* Added `ylim` argument to `g_km` to allow the user to set custom limits for the y-axis.
* Added assertion to `g_km` which checks whether there is one arm present in the data when `annot_coxph` is true.
* Added `flag_labels` argument to `s_count_patients_with_flags` to enable more label handling options in `count_patients_by_flags`.

### Miscellaneous
* Began deprecation of `time_unit_input` and `time_unit_output` arguments and replaced them with the `input_time_unit` and `num_pt_year`, respectively, in `control_incidence_rate`.
* Deprecated `a_compare` and replaced it with `a_summary` with argument `compare = TRUE`.
* Deprecated helper functions `create_afun_summary` and `create_afun_compare` which are no longer used by `a_summary` and `a_compare` respectively.
* Removed deprecated `pairwise` function.

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion R/analyze_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' leverage `analyze_colvars` to have the context split in rows and the analysis
#' methods in columns.
#' * [summarize_change()]
#' * [analyze_vars()]: formerly known as [summarize_vars()], it was renamed to reflect
#' * [analyze_vars()]: formerly known as `summarize_vars()`, it was renamed to reflect
#' core function [rtables::analyze()].
#' * [surv_time()]
#' * [surv_timepoint()]
Expand Down
Loading

0 comments on commit bfe2840

Please sign in to comment.