Skip to content

Releases: insightsengineering/tern

v0.7.2

19 Aug 22:15
Compare
Choose a tag to compare
  • Fixed internal test errors regarding column labels.

v0.7.1

19 Aug 22:15
Compare
Choose a tag to compare
  • New argument position_surv_med added to g_km to move position of the annotation table with median survival times.
  • Fixed bug in g_km related to the arguments pch and size. Previously, these arguments were not passed on to helper function h_ggkm and so were effectively being ignored.
  • Updated xticks and max_time arguments in g_km for greater functionality. max_time added as an argument in h_xticks to allow this.
  • Fixed bug in prop_diff_cmh that led to NaN weighted proportion difference estimates and missing confidence intervals. Previously, when for at least one stratum no patients from one treatment arm were included, then the estimation did not lead to numeric results.
  • Fixed bug in prop_cmh which previously gave an error in case of at least one stratum containing less than two observations.
  • New argument n_events added to estimate_incidence_rate.
  • New argument denom added to count_occurrences.
  • New arguments yval and ci_ribbon added to g_km.
  • Add new individual patient plot function g_ipp along with helpers h_g_ipp and h_set_nest_theme.
  • Fixed bug in count_patients_with_events, now zero counts without percentage are shown.
  • Fixed bug in get_mmrm_lsmeans which previously did not allow MMRM analysis of more than 3000 observations.
  • Updated stat_mean_ci and stat_median_ci to correctly handle edge cases with number of elements in input series equal to 1. For such cases, NA_real_ is now returned, instead of NA or +/-Inf for confidence interval (CI) estimates.
  • Rename n_lim argument of stat_mean_ci to n_min to better reflect its desired meaning.

v0.7.0

19 Aug 22:15
Compare
Choose a tag to compare

This version of tern introduces a major rewriting of tern due to the change to layout based tabulation in rtables. tern now does not build tables directly anymore, instead it provides analysis functions to easily build tables, see the examples.

  • Counting patients with abnormal values post-baseline with count_abnormal.
  • Counting patients with graded abnormal values with count_abnormal_by_worst_grade.
  • Counting patients with abnormal values by baseline status with count_abnormal_by_baseline.
  • Counting patients with missed doses with s_count_missed_doses and count_missed_doses.
  • Counting patients with event flags with count_patients_with_event and count_patients_with_flags.
  • Summarizing variables with summarize_vars (supports numeric, factor, character and logical variables). Note that factors need to have NAs converted to na_level before use.
  • Summarizing change from baseline with summarize_change.
  • Summarizing variables in columns with summarize_colvars.
  • Estimating difference in terms of responder proportions with estimate_proportion_diff.
  • Estimating difference in terms of Odds Ratio with estimate_odds_ratio.
  • Testing the difference in responder proportions with test_proportion_diff.
  • Estimating the responder proportion regarding the level of a factor with estimate_multinomial_response.
  • Fitting and tabulating the results of Cox regressions with fit_coxreg_univar, fit_coxreg_multivar and summarize_coxreg, respectively.
  • Pruning occurrence tables (or tables with counts and fractions) with flexible rules, see ?prune_occurrences for details.
  • Sorting occurrence tables using different options, see ?score_occurrences for details.
  • Fitting and tabulating MMRMs with fit_mmrm and as.rtable and summarize_lsmeans, see ?tabulate_mmrm for details.
  • Counting the number of unique and non-unique patients with summarize_num_patients.
  • Counting occurrences with count_occurrences.
  • Counting occurrences by grade with summarize_occurrences_by_grade and count_occurrences_by_grade.
  • Counting patients and events in columns with summarize_patients_events_in_cols.
  • Tabulating the binary outcome response by subgroup with extract_rsp_subgroups and tabulate_rsp_subgroups.
  • Tabulating the survival duration by subgroup with extract_survival_subgroups and tabulate_survival_subgroups.

v0.6.9

19 Aug 22:15
Compare
Choose a tag to compare
  • Removing not used imports.