Releases: insightsengineering/tern
Releases · insightsengineering/tern
v0.7.2
- Fixed internal test errors regarding column labels.
v0.7.1
- New argument
position_surv_med
added tog_km
to move position of the annotation table with median survival times. - Fixed bug in
g_km
related to the argumentspch
andsize
. Previously, these arguments were not passed on to helper functionh_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 inh_xticks
to allow this. - Fixed bug in
prop_diff_cmh
that led toNaN
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 toestimate_incidence_rate
. - New argument
denom
added tocount_occurrences
. - New arguments
yval
andci_ribbon
added tog_km
. - Add new individual patient plot function
g_ipp
along with helpersh_g_ipp
andh_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
andstat_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 ofNA
or+/-Inf
for confidence interval (CI) estimates. - Rename
n_lim
argument ofstat_mean_ci
ton_min
to better reflect its desired meaning.
v0.7.0
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
andcount_missed_doses
. - Counting patients with event flags with
count_patients_with_event
andcount_patients_with_flags
. - Summarizing variables with
summarize_vars
(supports numeric, factor, character and logical variables). Note that factors need to haveNA
s converted tona_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
andsummarize_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
andas.rtable
andsummarize_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
andcount_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
andtabulate_rsp_subgroups
. - Tabulating the survival duration by subgroup with
extract_survival_subgroups
andtabulate_survival_subgroups
.
v0.6.9
- Removing not used imports.