admiral 1.3.0
admiral 1.3.0
New Features
-
The documentation was enhanced: (#2585)
- The default value of an argument is now displayed in the argument description.
- For some complex functions each example has now a title, which is also shown in
the TOC, and a description. This enabled adding more examples without losing
readability. The output of the structured examples used for complex functions is
displayed in the help pages in RStudio. The following existing functions
(as well as any new functions added in this release) received this enhancement:derive_extreme_event()(#2735)derive_extreme_records()(#2585)derive_param_computed()(#2701)derive_param_tte()(#2704)derive_summary_records()(#2707)derive_var_extreme_flag()(#2752)derive_var_joined_exist_flag()(#2729)derive_var_trtemfl()(#2746)derive_vars_crit_flag()(#2744)derive_vars_dt()(#2715)derive_vars_dtm()(#2715)derive_vars_joined()(#2727)derive_vars_merged()(#2727)filter_joined()(#2729)
-
New function
derive_vars_joined_summary()to derive summary variables from
selected records of an additional dataset where the selection depends on
variables from both the input dataset and the additional dataset. For example,
the cumulative dose up to each adverse event inADAEcan be derived with the
new function. (#2652) -
New lab grading metadata for US (Conventional) units for the three grading criteria
admiralalready produces for SI units (#2557).atoxgr_criteria_ctcv4_uscv(NCI-CTCAEv4 criteria)atoxgr_criteria_ctcv5_uscv(NCI-CTCAEv5 criteria)atoxgr_criteria_daids_uscv(DAIDs criteria)
Updates of Existing Functions
-
In
derive_vars_joined(), thefilter_addargument is now correctly applied for all join types, fixing an issue where it was ignored whenjoin_type != "all". (#2682) -
The function
extract_duplicate_records()was updated to consider all variables in the input dataset for the by group if theby_varsargument is omitted entirely. (#2644) -
In
slice_derivation(), previously the derivation is not called for empty
subsets, however this can lead to issues when the input dataset is empty. Now
the derivation is called for all subsets. (#2645) -
The examples section for the function
derive_var_trtemfl()was enhanced to include a showcasing of all scenarios discussed in the following PHUSE White Paper on Treatment-Emergent AEs. (#2455) -
derive_var_atoxgr_dir()updated to handle more than one unit in grading metadata. Related to providing US (Conventional) units for grading (#2557). -
NCICTCAEv4 and NCICTCAEv5 grading criteria (
atoxgr_criteria_ctcv4,atoxgr_criteria_ctcv4_uscv,atoxgr_criteria_ctcv5,atoxgr_criteria_ctcv5_uscv),
updated to add terms"Acidosis"and"Alkalosis"(#2768). -
The functions
derive_summary_records()andderive_param_exist_flag()
were updated to fix an issue where if a variable was in bothdataset_addanddataset_ref, it was
added to the new records even if it was not inby_vars. (#2664) -
derive_var_atoxgr_dir()updated to handle more than one unit in grading metadata. Related to providing US (Conventional) units for grading. (#2557) -
The background checks in
derive_summary_records()were too restrictive:by_varswere expected indatasetalthough the code did not require it. This requirement has therefore been dropped. (#2686) -
The functions
derive_vars_joined(),derive_var_joined_exist_flag(), and
filter_joined()produce correct results now when they are used withjoin_type = "before"orjoin_type = "after"anddatasetanddataset_adddiffer or
thefilter_addargument is used. (#2863) -
The function
derive_locf_records()was updated to include two new arguments:id_vars_refandimputation.
Theid_vars_refargument allows users to select the variables to group by in the reference dataset (dataset_ref)
when determining which observations to add to the input dataset. Theimputationargument lets users decide whether
to updateanalysis_varwhen its value isNA("update" and "update_add"), or to add a new observation instead ("add"). (#2694) (#2680) (#2717) -
derive_vars_dt(),derive_vars_dtm(),impute_dtc_dt(),impute_dtc_dtm(),convert_dtc_to_dt(), &convert_dtc_to_dtm()and related functions will now throw an error instead of a warning whenhighest_imputation = "Y"but neithermin_date(whendate_imputation = "first") normax_dates(whendate_imputation = "last") are specified. (#2654) -
create_query_data()no longer issues warnings whenbasket_select()objects
with custom arguments of length greater than one are used. (#2751) -
The
orderargument inderive_var_joined_exist_flag()andfilter_joined()
is now optional unlessjoin_type = "after",join_type = "before",
first_cond_lower,first_cond_upper, ortmp_obs_nr_varare specified.
(#2729)
Breaking Changes
-
derive_vars_dtm()issues a message alerting users to a coming change in
admiral 1.4.0where the default behavior ofignore_seconds_flagwill be changed from
FALSEtoTRUE. (#2661) -
Lab grading metadata
atoxgr_criteria_ctcv4(),atoxgr_criteria_ctcv5()andatoxgr_criteria_daids()variableSI_UNIT_CHECKrenamed toUNIT_CHECK. (#2557) -
The values of the variable specified for
tmp_obs_nr_varin
derive_vars_joined(),derive_var_joined_exist_flag(),filter_joined()are
now populated differently if there are multiple records indatasetor
dataset_addfor the same values ofby_varsandorder. Before each of these
records was assigned a different value, i.e., the variable (together with
by_vars) was a unique identifier. Now the value is the same for all these
records. (#2683) -
The following function arguments are entering the next phase of the deprecation process: (#2487) (#2595)
Phase 1 (message)
-
call_user_fun()is deprecated and will have no replacement. (#2678) -
derive_param_extreme_record()is deprecated and replaced byderive_extreme_event() -
derive_var_dthcaus()is deprecated and replaced byderive_vars_extreme_event() -
date_source()is deprecated and replaced byevent() -
dthcaus_source()is deprecated and replaced byevent() -
derive_var_extreme_dt()andderive_var_extreme_dtm()are deprecated and replaced by
derive_vars_extreme_event() -
get_summary_records()is deprecated. Please usederive_summary_records()with thedataset_add
argument and without thedatasetargument.Phase 2 (warning)
No functions or arguments in this Phase
Phase 3 (error)
No functions or arguments in this Phase
Phase 4 (removed)
No functions or arguments in this Phase
-
Documentation
-
Improved documentation, error messages, and argument assertions of
derive_vars_dt(),derive_vars_dtm(),impute_dtc_dt(),impute_dtc_dtm(),convert_dtc_to_dt(), &convert_dtc_to_dtm(). (#2654) -
Added an example to the
derive_vars_transposed()reference page to showcase how duplicates-related errors can arise when records indataset_mergeare not uniquely identified. (#2609) -
Default value of
typeinderive_vars_aage()is now shown asintervalto match the function behavior. (#2685) -
The "Lab Grading" vignette was updated to correct some typos and make text easier to
read (#2623) and updated to include new metadata for grading using US (Conventional) units. (#2557) -
The "BDS Time-to-Event" vignette was updated to include
SRCSEQconsistently. (#2658) -
The template for ADAE and the OCCDS vignette were updated to include an example of the
DOSEONandDOSEUvariables (#2737). -
The template for ADPC and vignette were updated to include an example of using
DTYPEfor imputed records (#2657). -
The "Higher Order Functions" vignette was updated to showcase an example of two higher order functions used in combination. The documentation for each of the higher order functions was also corrected by removing the stated requirement that the
derivationtakes adatasetargument (#2656). -
The 'Details' section of the
derive_var_analysis_ratio()function and the 'Derive Analysis Ratio' section of the "Creating a BDS Finding ADaM" vignette were updated to include references toR2AyHIandR2AyLO. (#2548) -
The
derive_basetype_records()documentation was updated to clarifyBASETYPEderivations. (#2545) -
The
derive_extreme_records()documentation was updated to clarify which variables are populated
fromdataset_reffor the new observations. (#2664) -
The 'Assign
PARAMCD,PARAM,PARAMN,PARCAT1' section of the "Creating a BDS Finding ADaM" vignette was updated to clarifyPARAMtoPARCAT1mapping. (#2547) -
The package documentation for (1) all CRAN-released versions starting from
{admiral}1.0.0 up until the current version and (2) the latest development version (listed under "main") are all now accessible using the "Versions" selector in the toolbar. (#2766)
Various
Developer Notes
- Removed CODEOWNERS file from repo (#2674)