Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9574799
Add new (helper) functions for proportions: assert_prop_data() and sa…
wwojciech Aug 29, 2026
17965f0
Update man for assert_prop_data() and safe_2x2_table().
wwojciech Aug 29, 2026
638b670
assert_prop_data() should not be exported.
wwojciech Aug 31, 2026
1ab9c5f
assert_prop_data() man update.
wwojciech Aug 31, 2026
aac4af4
update assert_prop_data() man page.
wwojciech Aug 31, 2026
cfb01b2
Export assert_prop_data().
wwojciech Sep 1, 2026
9961855
Rename assert_prop_data() to assert_proportion_data().
wwojciech Sep 2, 2026
f2baa62
fixing typo (old function name)
wwojciech Sep 2, 2026
c527080
Moved assert_proportion_data() to assertions.
wwojciech Sep 2, 2026
d526ba0
update return update of assert_proportion_data().
wwojciech Sep 2, 2026
309b252
Merge branch 'main' into 1514_add_safe_2x2_table
Melkiades Sep 2, 2026
ed2fea4
Fix NEWS.md version boundary for released 0.9.11
Melkiades Sep 2, 2026
6e1bb2b
update man of assert_proportion_data() and save_2x2_table().
wwojciech Sep 2, 2026
2eb1daf
Updating s_test_proportion_diff() to use new safe_2x2_table(). Extend…
wwojciech Sep 8, 2026
71ada97
solve critical typo in s_test_proportion_diff().
wwojciech Sep 8, 2026
a8241f7
Cosmetic refactoring of s_test_proportion_diff().
wwojciech Sep 8, 2026
0455472
seealso roxygen tag update for s_test_proportion_diff().
wwojciech Sep 8, 2026
10ce5f2
Added: get_complete_cases() and h_prepare_2x2_table() - it replaces s…
wwojciech Sep 8, 2026
b95ace9
Added the `val` argument to `s_test_proportion_diff()`
wwojciech Sep 8, 2026
947922e
cosmetic s_test_proportion_diff() update.
wwojciech Sep 8, 2026
29ab62f
Set default value for val argument of h_prepare_2x2_table(). Add unit…
wwojciech Sep 8, 2026
ec17104
Correct lintr and add few more unit tests for h_prepare_2x2_table().
wwojciech Sep 8, 2026
86534d4
Added the val argument and refactored s_proportion_diff() so that it …
wwojciech Sep 9, 2026
d9ff1a7
Merge branch 'main' into 1514_add_safe_2x2_table
wwojciech Sep 9, 2026
fbec52c
minor implementation change of h_prepare_2x2_table() - merge df_ref w…
wwojciech Sep 9, 2026
fa8ad40
Cosmetic update of the code comment for h_prepare_2x2_table().
wwojciech Sep 9, 2026
6d37d49
Add seealso roxygen tag for s_proportion_diff().
wwojciech Sep 9, 2026
62888af
Added better assertions for s_proportion_diff() and s_test_proportion…
wwojciech Sep 9, 2026
73b8955
Added unit tests for new some assertions for s_test_proportion_diff()…
wwojciech Sep 9, 2026
b4c675a
Minor unit test update for s_proportion_diff().
wwojciech Sep 9, 2026
c713d24
Added new assert_stratification_compatibility() function (with unit t…
wwojciech Sep 9, 2026
08694b2
s_proportion_diff() cosmetic update.
wwojciech Sep 9, 2026
37cd537
s_test_proportion_diff() important assertion update.
wwojciech Sep 9, 2026
ee1e892
Cosmetic update h_prepare_2x2_table().
wwojciech Sep 9, 2026
88a3bc6
Solves issue #1521.
wwojciech Sep 10, 2026
177a582
Cosmetic update to s_proportion_diff().
wwojciech Sep 10, 2026
69b3ae6
Cosmetic chnage for s_test_proportion_diff().
wwojciech Sep 10, 2026
ce07a3b
Adressing PR review about weights_method.
wwojciech Sep 10, 2026
22ed590
Removed assertions for some variables that are passed untouched into …
wwojciech Sep 10, 2026
5d93889
Merge branch 'main' into 1514_add_safe_2x2_table
wwojciech Sep 14, 2026
d246751
Renamed 2 variables in s_test_proportion_diff() and s_proportion_diff().
wwojciech Sep 15, 2026
0e3bf2c
Adressed PR review suggestions for s_test_proportion_diff(), s_propor…
wwojciech Sep 16, 2026
a4bcad7
Merge branch 'main' into 1514_add_safe_2x2_table
wwojciech Sep 16, 2026
463eaea
added assertion for variables in s_test_proportion_diff().
wwojciech Sep 16, 2026
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
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export(as.rtable)
export(as_factor_keep_attributes)
export(assert_df_with_factors)
export(assert_df_with_variables)
export(assert_proportion_data)
export(assert_proportion_value)
export(check_diff_prop_ci)
export(clogit_with_tryCatch)
Expand Down Expand Up @@ -147,6 +148,7 @@ export(g_km)
export(g_lineplot)
export(g_step)
export(g_waterfall)
export(get_complete_cases)
export(get_covariates)
export(get_formats_from_stats)
export(get_indents_from_stats)
Expand Down Expand Up @@ -208,6 +210,7 @@ export(h_or_cont_interaction)
export(h_or_interaction)
export(h_pkparam_sort)
export(h_ppmeans)
export(h_prepare_2x2_table)
export(h_proportion_df)
export(h_proportion_subgroups_df)
export(h_row_counts)
Expand Down
23 changes: 23 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# tern 0.9.11.9000

### Enhancements
* Added `h_prepare_2x2_table()` to prepare contingency table(s) for proportion
analyses. (#1514)
* Added `get_complete_cases()` to remove observations containing missing values. (#1514)
* Added `assert_proportion_data()` to validate responder, group, and optional
stratification data used in proportion analyses. (#1514).
* Added `mantel_fleiss_crit()` to check the Mantel-Fleiss criterion
for stratified 2 x 2 contingency tables, together with a vignette
demonstrating its use. (#1512)
Expand All @@ -13,6 +18,24 @@
stored in a single column. (#1499)
* Added the `exclude_rows` argument to `g_forest()` to allow excluding selected
rows from the forest plot before plotting. (#1498)

### Bug Fixes
* Fixed an issue in `s_proportion_diff()` where the `weights_method` argument
was ignored. The `variables` argument, if supplied, can now only contain the
`strata` element. Other elements, including `weights_method`, are no longer
supported. Previously, `variables$weights_method` could unintentionally
override the `weights_method` argument due to a bug. (#1521)

### Miscellaneous
* Updated `s_proportion_diff()` and `s_test_proportion_diff()` so that strata
variables, if supplied, must be factors. Character-type strata variables are
no longer supported. (#1514)
* Updated `s_proportion_diff()` and `s_test_proportion_diff()` to throw an error
when strata variable(s) are provided but an unstratified method is chosen. (#1514)
* Added the `val` argument and refactored `s_proportion_diff()` so that it uses
the new function `h_prepare_2x2_table()`.
* Added the `val` argument and refactored `s_test_proportion_diff()` so that it
uses the new function `h_prepare_2x2_table()`.

Comment thread
wwojciech marked this conversation as resolved.
# tern 0.9.11

Expand Down
Loading
Loading