|
1 | 1 | # tern 0.9.2.9000
|
2 | 2 |
|
| 3 | +### Miscellaneous |
| 4 | +* Specified minimal version of package dependencies. |
| 5 | + |
3 | 6 | # tern 0.9.2
|
4 | 7 |
|
5 | 8 | ### New Features
|
|
65 | 68 | ### Enhancements
|
66 | 69 | * Added `ylim` argument to `g_km` to allow the user to set custom limits for the y-axis.
|
67 | 70 | * Added assertion to `g_km` which checks whether there is one arm present in the data when `annot_coxph` is true.
|
68 |
| -* Added `flag_labels` argument to `s_count_patients_with_flags` to enable more label handling options in `count_patients_by_flags`. |
| 71 | +* Added `flag_labels` argument to `s_count_patients_with_flags` to enable more label handling options in `count_patients_by_flags`. |
69 | 72 | * Added the `nested` argument to `analyze` wrapper functions `count_abnormal`, `count_abnormal_by_baseline`, `count_abnormal_by_marked`, `count_abnormal_by_worst_grade`, `count_abnormal_lab_worsen_by_baseline`, `count_cumulative`, `count_missed_doses`, `count_occurrences`, `count_occurrences_by_grade`, `count_patients_with_event`, `count_patients_with_flags`, `count_values`, `estimate_multinomial_response`, `estimate_proportion`, `estimate_incidence_rate`, `estimate_odds_ratio`, `estimate_proportion_diff`, `test_proportion_diff`, `summarize_ancova`, `summarize_change`, `summarize_glm_count`, `analyze_num_patients`, `coxph_pairwise`, `surv_time`, and `surv_timepoint`.
|
70 | 73 |
|
71 | 74 | ## Miscellaneous
|
|
139 | 142 | ### Enhancements
|
140 | 143 | * Added `summarize_glm_count` function to analyze count data using a linear model.
|
141 | 144 | * Added legend to `g_step`.
|
142 |
| -* Added formatting functions `format_fraction_fixed_dp` and |
| 145 | +* Added formatting functions `format_fraction_fixed_dp` and |
143 | 146 | `format_count_fraction_fixed_dp` with fixed single decimal place in percentages.
|
144 | 147 | * Added `na_level` and `labelstr` arguments to `summarize_vars_in_cols`.
|
145 | 148 | * Added `analyze_num_patients` to include summary at the beginning that does not
|
146 | 149 | repeat when paginating.
|
147 | 150 | * Added `h_row_first_values` function as a more general helper function to retrieve
|
148 | 151 | first values from specific rows.
|
149 | 152 | * Added option to remove `"(n)"` suffix from `unique_count` labels for `s_num_patients`.
|
150 |
| -* Added options to `g_km` to annotate with statistics (`annot_stats`) and add corresponding |
| 153 | +* Added options to `g_km` to annotate with statistics (`annot_stats`) and add corresponding |
151 | 154 | vertical lines (`annot_stats_lines`).
|
152 | 155 |
|
153 | 156 | ### Bug Fixes
|
154 |
| -* Fixed bug causing incorrect ordering of numeric grade levels when missing |
| 157 | +* Fixed bug causing incorrect ordering of numeric grade levels when missing |
155 | 158 | grades are present in `s_count_occurrences_by_grade`.
|
156 | 159 | * Refactored `summarize_vars_in_cols` to work with pagination machinery.
|
157 | 160 | * Fixed bug to allow passing of `conf_level` argument to `emmeans::contrast()` in `s_ancova`.
|
|
166 | 169 | * Added more tests to increase code coverage.
|
167 | 170 | * Created separate documentation files for functions in different sections of `pkgdown` reference.
|
168 | 171 | * Created separate `.R` files for logistic regression and cox regression helper functions.
|
169 |
| -* Fixed table tests using `analyze_num_patients` to generate an initial summary so there is no |
| 172 | +* Fixed table tests using `analyze_num_patients` to generate an initial summary so there is no |
170 | 173 | repetition when paginating.
|
171 | 174 | * Updated tests to use `testthat` 3rd edition and replaced applicable tests with snapshot testing.
|
172 | 175 | * Updated `summarize_ancova` examples to use `iris` dataset instead of `scda` data.
|
173 |
| -* Created vignette which saves cached synthetic `CDISC` dataset files to the `data/` folder and |
| 176 | +* Created vignette which saves cached synthetic `CDISC` dataset files to the `data/` folder and |
174 | 177 | generated cached synthetic datasets.
|
175 | 178 | * Updated all examples/tests to use datasets from the `data/` folder instead of `scda` datasets.
|
176 | 179 | * Removed all template tests from `tern`. These tests are in internal repo `scda.test`.
|
|
189 | 192 | ### New Features
|
190 | 193 | * Added stratified `Newcombe` and stratified Wilson statistics to `estimate_proportion` and
|
191 | 194 | `estimate_proportion_diff` with relative tests.
|
192 |
| -* Added `stat_mean_pval`, a new summary statistic to calculate the p-value of |
| 195 | +* Added `stat_mean_pval`, a new summary statistic to calculate the p-value of |
193 | 196 | the mean.
|
194 |
| -* Added statistic `mean_se` (mean with standard error) for `summarize_variables` |
| 197 | +* Added statistic `mean_se` (mean with standard error) for `summarize_variables` |
195 | 198 | and related functions.
|
196 | 199 | * Introduced again `Rdpack` for references.
|
197 | 200 |
|
198 |
| -### Enhancements |
199 |
| -* Redesign of data handling in tests by removing repetitive data loads and |
| 201 | +### Enhancements |
| 202 | +* Redesign of data handling in tests by removing repetitive data loads and |
200 | 203 | library calls.
|
201 | 204 | * Added `DescTools::BinomDiffCI` function within `tern`.
|
202 |
| -* Added new parameter to `summarize_logistic` to specify which pivoted value |
| 205 | +* Added new parameter to `summarize_logistic` to specify which pivoted value |
203 | 206 | to use during analysis.
|
204 |
| -* Updated `s_coxph_pairwise` to generate log-rank p-value using original |
| 207 | +* Updated `s_coxph_pairwise` to generate log-rank p-value using original |
205 | 208 | log-rank test instead of Cox Proportional-Hazards Model.
|
206 |
| -* Implemented `nestcolor` in all examples by adapting `g_km`, `g_ipp`, |
| 209 | +* Implemented `nestcolor` in all examples by adapting `g_km`, `g_ipp`, |
207 | 210 | `g_waterfall`, `g_step`, `g_lineplot`, and `g_forest`.
|
208 |
| -* Added parameters `interaction_y` and `interaction_item` in `ANCOVA` to make the |
| 211 | +* Added parameters `interaction_y` and `interaction_item` in `ANCOVA` to make the |
209 | 212 | interaction calculations available.
|
210 | 213 | * Added new parameter `footnotes` to add footnotes to `g_km`.
|
211 | 214 |
|
212 | 215 | ### Migration from `assertthat` to `checkmate`
|
213 |
| -* Implemented `checkmate::assert_vector`, `checkmate::assert_set_equal`, and |
| 216 | +* Implemented `checkmate::assert_vector`, `checkmate::assert_set_equal`, and |
214 | 217 | `checkmate::assert_int` to check vector type, length, and values.
|
215 | 218 | * Replaced with standard assertions from `checkmate` the following functions:
|
216 |
| - `all_elements_in_ref`, `is_df_with_nlevels_factor`, `is_df_with_no_na_level`, |
217 |
| - `is_proportion_vector`, `is_quantiles_vector`, `is_character_or_factor`, |
218 |
| - `is_nonnegative_count`, `is_valid_character`, `assert_character_or_factor`, |
| 219 | + `all_elements_in_ref`, `is_df_with_nlevels_factor`, `is_df_with_no_na_level`, |
| 220 | + `is_proportion_vector`, `is_quantiles_vector`, `is_character_or_factor`, |
| 221 | + `is_nonnegative_count`, `is_valid_character`, `assert_character_or_factor`, |
219 | 222 | `assert_equal_length` and `has_tabletree_colnames`.
|
220 |
| -* Modified `is_proportion`, `is_equal_length`, `is_df_with_no_na_level`, |
221 |
| - `is_df_with_nlevels_factor`, `is_variables`, `is_df_with_variables`, |
| 223 | +* Modified `is_proportion`, `is_equal_length`, `is_df_with_no_na_level`, |
| 224 | + `is_df_with_nlevels_factor`, `is_variables`, `is_df_with_variables`, |
222 | 225 | `is_df_with_factors`, `is_valid_factor` to use assertion logic.
|
223 | 226 | * Added more verbose warnings from `as_factor_keep_attributes`.
|
224 | 227 | * Made `assert_df_with_factors` and `assert_proportion_value` internal functions.
|
225 |
| -* Renamed `assertthat.R` and `test-assertthat.R` to `utils_checkmate.R` and |
| 228 | +* Renamed `assertthat.R` and `test-assertthat.R` to `utils_checkmate.R` and |
226 | 229 | `test-utils_checkmate.R`.
|
227 | 230 |
|
228 | 231 | ### Documentation and NAMESPACE Polishing
|
|
252 | 255 | `estimate_multinomial_rsp`, `decorate_grob_set`, `extreme_format`, `fit_rsp_step`,
|
253 | 256 | `fit_survival_step`, `footnotes`, `footnotes-set`,
|
254 | 257 | `format_count_fraction`, `format_fraction_threshold`, `formatting_functions`,
|
255 |
| - `format_fraction`, `combination_function` (S4 method), `compare_variables` (S3 method), |
| 258 | + `format_fraction`, `combination_function` (S4 method), `compare_variables` (S3 method), |
256 | 259 | `kaplan_meier`.
|
257 | 260 | * Internal keywords added, export removed, `_pkgdown.yml` updated, and `tern:::` added for
|
258 | 261 | tests/examples/vignettes where present for the following functions:
|
|
287 | 290 | * Fixed empty vector exception for `cut_quantile_bins`.
|
288 | 291 | * Fixed exception error when empty strings are present in pivoted columns (`rtables` split
|
289 | 292 | functions)
|
290 |
| -* Fixed bug in `s_ancova` causing an error when the first level of the arm |
291 |
| - factor is not the control arm. |
| 293 | +* Fixed bug in `s_ancova` causing an error when the first level of the arm |
| 294 | + factor is not the control arm. |
292 | 295 | * Fixed bug in `s_abnormal_by_worst_grade` when there is one `PARAM` level.
|
293 | 296 | * Fixed bug in `prop_diff_wald` when selecting all responders, updated tests accordingly.
|
294 | 297 | * Fixed bug in `h_ancova` that caused an error when deselecting all covariates.
|
295 | 298 |
|
296 | 299 | ### Miscellaneous
|
297 | 300 | * Added deprecated badge to `g_mmrm`.
|
298 |
| -* Removed internal function calls in examples (`tern:::`) and added `dontrun` |
| 301 | +* Removed internal function calls in examples (`tern:::`) and added `dontrun` |
299 | 302 | to internal function examples.
|
300 | 303 | * Removed warnings and messages to console occurring in examples and tests.
|
301 |
| -* Deprecated functions `color_palette` and `h_set_nest_theme` in favor of |
| 304 | +* Deprecated functions `color_palette` and `h_set_nest_theme` in favor of |
302 | 305 | `nestcolor::color_palette` and `nestcolor::theme_nest`, respectively.
|
303 |
| -* Removed deprecated functions: `color_palette`, `color_palette_core`, |
| 306 | +* Removed deprecated functions: `color_palette`, `color_palette_core`, |
304 | 307 | `h_set_nest_theme`, `s_cox_univariate`.
|
305 |
| -* Removed deprecated `mmrm` functions: `fit_mmrm`, `g_mmrm_diagnostic`, |
306 |
| - `g_mmrm_lsmeans`, `as.rtable.mmrm`, `h_mmrm_fixed`, `h_mmrm_cov`, |
307 |
| - `h_mmrm_diagnostic`, `tidy.mmrm`, `s_mmrm_lsmeans`, `s_mmrm_lsmeans_single`, |
| 308 | +* Removed deprecated `mmrm` functions: `fit_mmrm`, `g_mmrm_diagnostic`, |
| 309 | + `g_mmrm_lsmeans`, `as.rtable.mmrm`, `h_mmrm_fixed`, `h_mmrm_cov`, |
| 310 | + `h_mmrm_diagnostic`, `tidy.mmrm`, `s_mmrm_lsmeans`, `s_mmrm_lsmeans_single`, |
308 | 311 | `summarize_lsmeans`.
|
309 | 312 | * Renamed functions `arm` to `study_arm` and `extract` to `extract_by_name`.
|
310 | 313 | * Renamed `rtables.R` to `utils_rtables.R`.
|
|
0 commit comments