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

Reorganize and group defaults for stats and their default formats/labels -> addition of auto for DMT01 #1051

Merged
merged 77 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
5c5191f
Init from other repo
Melkiades Aug 31, 2023
f7ddd77
renaming
Melkiades Aug 31, 2023
6322689
news
Melkiades Aug 31, 2023
221f6a8
adding docs and init testing
Melkiades Aug 31, 2023
3c8a9e8
fixes and complete tests
Melkiades Sep 1, 2023
6820a06
typo renaming
Melkiades Sep 1, 2023
434f261
starts unpacking summary_stats
Melkiades Sep 1, 2023
29d77c8
added parameters for pval and filtering
Melkiades Sep 1, 2023
58bd86a
Merge branch 'main' into 994_reorganize_defaults@main
Melkiades Sep 1, 2023
c522ab5
keep the footprint small for now
Melkiades Sep 1, 2023
0bf54be
more checks
Melkiades Sep 4, 2023
e351ffd
fixing type with better simpler way (keeping it higher level)
Melkiades Sep 5, 2023
45a5028
documenting
Melkiades Sep 5, 2023
5d4bbd4
styling
Melkiades Sep 5, 2023
42ba731
fixing analyze_vars_in_cols
Melkiades Sep 5, 2023
2dfa7e9
roxygenize
Melkiades Sep 5, 2023
5aefbb7
styiling
Melkiades Sep 5, 2023
285b4b1
upd
Melkiades Sep 5, 2023
ffbc09d
some simplification
Melkiades Sep 5, 2023
7523644
fixing imp tests
Melkiades Sep 5, 2023
0a35c27
fixes and NEWS
Melkiades Sep 5, 2023
75daa8a
change in internal value name
Melkiades Sep 5, 2023
bf28184
add to NEWS
Melkiades Sep 5, 2023
e44cbb2
These changes in values seem related to changes in emmeans (might nee…
Melkiades Sep 5, 2023
7703114
couple of fixes
Melkiades Sep 5, 2023
ebca702
adding a couple of handling for pvals
Melkiades Sep 5, 2023
ce6873c
it is in get_stats now
Melkiades Sep 5, 2023
c7c980e
fix tests
Melkiades Sep 5, 2023
4ba5455
fixes
Melkiades Sep 6, 2023
fc646dd
final fix
Melkiades Sep 6, 2023
75928f8
Update NEWS.md
Melkiades Sep 6, 2023
bf5ff61
Merge 75928f825f72090875b9f6fa35f2e15a0a5fe73d into 263e67151897da733…
Melkiades Sep 6, 2023
f88c3f5
[skip actions] Restyle files
github-actions[bot] Sep 6, 2023
2e455e3
styling
Melkiades Sep 6, 2023
9c97ec2
Merge branch '994_reorganize_defaults@main' of github.com:insightseng…
Melkiades Sep 6, 2023
a00b940
I think last fix
Melkiades Sep 6, 2023
35dea36
spell check fix
Melkiades Sep 6, 2023
d4d1ba4
fix
Melkiades Sep 6, 2023
8347c31
NEWS review
Melkiades Sep 7, 2023
0882056
Apply suggestions from code review
Melkiades Sep 7, 2023
431dcfc
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Sep 7, 2023
8a2b1df
adding format_auto
Melkiades Sep 7, 2023
e707a11
integration of auto
Melkiades Sep 7, 2023
35b7ece
roxygenizing a ton apparently
Melkiades Sep 7, 2023
2f57ef8
rename
Melkiades Sep 7, 2023
370f0ed
more renaming
Melkiades Sep 7, 2023
2e9584e
fixes to docs
Melkiades Sep 7, 2023
5639dae
Merge 2e9584e0944d0f2a6cea8f69f950e9809652b6b3 into 263e67151897da733…
Melkiades Sep 7, 2023
4df8e84
[skip actions] Restyle files
github-actions[bot] Sep 7, 2023
41d6336
used only once: removed
Melkiades Sep 7, 2023
f2ba822
renaming to plural
Melkiades Sep 7, 2023
420d99b
renaming labels
Melkiades Sep 7, 2023
4abd74a
rox
Melkiades Sep 7, 2023
fd15ea0
Merge branch '994_reorganize_defaults@main' of github.com:insightseng…
Melkiades Sep 7, 2023
7cbdee7
fixes and removal of test- summary_stats
Melkiades Sep 7, 2023
0cc47d3
removing the source too
Melkiades Sep 7, 2023
fc7a10e
Merge 0cc47d32442f24aaf1c6506f9f2a4c57397b950b into 263e67151897da733…
Melkiades Sep 7, 2023
f843772
[skip actions] Restyle files
github-actions[bot] Sep 7, 2023
f4e5499
update snapshots
Melkiades Sep 7, 2023
43e0dac
Merge branch '994_reorganize_defaults@main' of github.com:insightseng…
Melkiades Sep 7, 2023
b2b80de
fixes
Melkiades Sep 7, 2023
2f8b60b
putting type on higher default
Melkiades Sep 7, 2023
85988f0
last fixes
Melkiades Sep 7, 2023
437855a
tiny fix
Melkiades Sep 7, 2023
26cb616
renaming
Melkiades Sep 8, 2023
732d9d5
Apply suggestions from code review
Melkiades Sep 8, 2023
053f518
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Sep 8, 2023
edd3e3a
Merge branch '994_reorganize_defaults@main' of github.com:insightseng…
Melkiades Sep 8, 2023
45139af
fixed pkg_down
Melkiades Sep 8, 2023
a23e0ac
lint fixes
Melkiades Sep 8, 2023
8e47119
Merge branch 'main' into 994_reorganize_defaults@main
Melkiades Sep 8, 2023
8a5e168
Merge branch 'main' into 994_reorganize_defaults@main
Melkiades Sep 8, 2023
25486e5
lintfix
Melkiades Sep 8, 2023
23763c4
Merge branch '994_reorganize_defaults@main' of github.com:insightseng…
Melkiades Sep 8, 2023
a6ea43f
Merge branch 'main' into 994_reorganize_defaults@main
Melkiades Sep 11, 2023
ab41f94
[skip actions] Roxygen Man Pages Auto Update
dependabot-preview[bot] Sep 11, 2023
c6f64cb
docs
Melkiades Sep 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ Collate:
'summarize_glm_count.R'
'summarize_num_patients.R'
'summarize_patients_exposure_in_cols.R'
'summary_stats.R'
'survival_biomarkers_subgroups.R'
'survival_coxph_pairwise.R'
'survival_duration_subgroups.R'
'survival_time.R'
'survival_timepoint.R'
'utils.R'
'utils_checkmate.R'
'utils_default_stats_formats_labels.R'
'utils_factor.R'
'utils_grid.R'
'utils_rtables.R'
9 changes: 7 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Generated by roxygen2: do not edit by hand

S3method(a_summary,default)
S3method(a_summary,numeric)
S3method(as.rtable,data.frame)
S3method(h_coxreg_inter_effect,character)
S3method(h_coxreg_inter_effect,factor)
Expand Down Expand Up @@ -113,6 +111,7 @@ export(fit_logistic)
export(fit_rsp_step)
export(fit_survival_step)
export(forest_viewport)
export(format_auto)
export(format_count_fraction)
export(format_count_fraction_fixed_dp)
export(format_extreme_values)
Expand All @@ -128,7 +127,10 @@ export(g_km)
export(g_lineplot)
export(g_step)
export(g_waterfall)
export(get_formats_from_stats)
export(get_labels_from_stats)
export(get_smooths)
export(get_stats)
export(groups_list_to_df)
export(h_adlb_worsen)
export(h_adsl_adlb_merge_using_worst_flag)
Expand Down Expand Up @@ -278,6 +280,8 @@ export(tabulate_rsp_biomarkers)
export(tabulate_rsp_subgroups)
export(tabulate_survival_biomarkers)
export(tabulate_survival_subgroups)
export(tern_default_formats)
export(tern_default_labels)
export(test_proportion_diff)
export(to_n)
export(to_string_matrix)
Expand All @@ -300,6 +304,7 @@ importFrom(magrittr,"%>%")
importFrom(methods,new)
importFrom(rlang,.data)
importFrom(stats,pchisq)
importFrom(stats,setNames)
importFrom(survival,Surv)
importFrom(survival,coxph)
importFrom(survival,strata)
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@
### New Features
* Added `imputation_rule` function to apply imputation rule to data.
* Added new format function `format_sigfig` to allow for numeric value formatting by a specified number of significant figures.
* Added vectors containing default statistic formats and labels as `tern_default_formats` and `tern_default_labels`, respectively.
* Added function `get_stats` to return methods from given statistical method groups.
* Added function `get_formats_from_stats` to return formats and `get_labels_from_stats` to return labels for a given set of statistics.
* Added `"auto"` option for `.formats`. It uses `format_auto` to determine automatically the number of digits.

### Enhancements
* Refactored `tabulate_rsp_subgroups` to pass sanitation checks by preventing creation of degenerate subtables.
* Updated `analyze_vars_in_cols` to use caching, allow implementation of imputation rule via the `imp_rule` argument, and allow user to specify cell alignment via the `.aligns` argument.
* Updated `add_rowcounts` to allow addition of row counts from `alt_counts_df` using the `alt_counts` argument.

### Miscellaneous
* Grouped functions relating to valid method names and their default formats and labels into new source file `utils_defaults_handling.R`.
* Started deprecation of `summary_custom()` and `a_summary()` as a `S3` method.
* Renamed statistical method for `p-value` in the discrete case to `pval_counts`.
* Removed `a_summary_internal()` in favor of only one main `a_summary()`.

# tern 0.9.0
### New Features
* Added `stat_propdiff_ci` function to calculate proportion/risk difference and CI.
Expand Down
Loading