traumar 1.2.0
- This minor release introduces functionality to demonstrate how the Iowa trauma system currently engages in the quality improvement process using the System Evaluation and Quality Improvement Committee (SEQIC) Indicators.
- Added a Contributor Code of Conduct and support information. _ Additionally, a convenience function
is_it_normal()
provides the ability for users oftraumar
to get descriptive statistics on one or more numeric variables, with optional normality tests, and diagnostic plots (for one variable only). Grouping functionality is also supported inis_it_normal()
to conduct exploratory data analysis of one or more variables within zero or more groups. - Added the following functions:
- A fix was applied to
nonlinear_bins()
to make thepercent
column calculate correctly when groups were not introduced. - Removed hard-coded rounding from most calculations within the package where possible.
- Improved examples for the the package’s README,
probability_of_survival()
,nonlinear_bins()
,rmm()
, andrm_bin_summary()
using more helpful data. - Improved error messages coming from
nonlinear_bins()
when the argumentPs_col
does not follow the expected distribution of the calculated probability of survival, and/or a sample size too small to calculate bins is passed to the function, including when passed tormm()
andrm_bin_summary()
. - Code formatting changed to the
air
package through the RStudio IDE. - Updated data validation for
trauma_case_mix()
,trauma_performance()
,nonlinear_bins()
,rmm()
, andrm_bin_summary()
to provide improved messaging related to missings inPs_col
andoutcome_col
. - Across functions using the probability of survival calculation, it is expected that Ps values have a range of [0, 1]. Functions will no longer handle values in percentage format (e.g. 10, 50, 98).
- The
outcome
argument was removed fromtrauma_performance()
to remove ambiguity in the nature of theoutcome_col
values. Only values ofTRUE/FALSE
and1/0
are accepted. - The
diagnostics
argument was removed fromtrauma_performance()
to make the user interface smoother. Instead of providing guidance via outputs to the console, users are encouraged to seek assistance with interpreting results via the source academic literature and the package documentation. -
trauma_performance()
will no longer provide a pivoted output as a default. Users can elect to pivot the outputs as needed in their workflows. -
rmm()
andrm_bin_summary()
now have a new argumentbootstrap_ci
that allows a user to elect to use the bootstrap CIs, or not.bootstrap_ci
defaults toTRUE
in order to better support backward compatibility.
traumar 1.1.0
CRAN release: 2025-03-25
New Features
- Added optional grouping functionality to
nonlinear_bins()
,rmm()
, andrm_bin_summary()
.- Setting
group_vars = NULL
applies the functions to the entire dataset without subgrouping. - For pivoting the
rmm()
outputs longer, settingpivot = TRUE
will work whengroup_vars
is invoked by pivoting longer with the grouping context.
- Setting
Enhancements
- Improved
NA
handling inrmm()
andrm_bin_summary()
. - Ensured RMM calculations remain within the expected range of [-1 to 1], including their 95% confidence intervals.
- Optimized
nonlinear_bins()
by replacing its internalfor
loop withdplyr
functions, enhancing accuracy and efficiency without introducing breaking changes. - Improved command line messaging and documentation within
rmm()
andrm_bin_summary()
regarding probability of survival valuesPs_col < 0
andPs_col > 1
. Now, these functions will throw an error if probability of survival values arePs_col < 0
orPs_col > 1
. - The
nonlinear_bins()
function has improved data validation for thePs_col
variable.
traumar 1.0.0
CRAN release: 2025-02-21
- Initial release to CRAN.
- Achieved comprehensive test coverage (>90%).
traumar 0.0.1.9000
- Introduced
probability_of_survival()
function. - Expanded outputs for:
- Updated existing tests and added new test cases.
- Began test coverage improvements.