- Removed 4
data_SLAM_*datasets and replaced them with 2 simplified ones:glucandnmr. These only contain cohorts 1-3 and they have both census and survival information to make examples shorter. add_delta()was renamed tomutate_delta()- All examples were migrated from the Roxygen documentation to their own R files.
- New Functions
plot_long()Function takes in data, and plots points and lines longitudinally, using loess (you can change span, but it is set to default) You can also choose to show the local maximum for analytical purposes. Thank you Remy!plot_bar()Function takes in a database, and plots points based on 3 thank you Remy! variables - y-axis, x-axis, and grouping. Function calculates standard deviations and means by group and point on x-axis. Only y-axis needs to be numeric, but if you want to ensure the x-axis are ordered correctly, I suggest ordering it before plotting. Thank you Remy!plot_mfreq()
- Refactored Functions
add_delta()merge_difdate()merge_diftime()
- Features Added
NEWS.mdREADME.md
- Added
add_delta()function. This function allows you to take lagged or leading rolling differences for numeric values. It will calculate the leading or lagging differences based only on non-NA observations. Also the user can specify an integer value for the size of the shift window. Thank you Jorge for this function. - Fixed bug in
merge_diftime(). The bug caused the second date to be a numeric value instead of a date has been fixed. Thank you Jorge for pointing this out and providing a solution. - missForest is no longer a package import; it is now suggested. This makes
R < 4.1 users be able to install the SLAM package easier because the current
missForest version is only available for R >= 4.1 users. However, this means you
may have to manually install the missForest package if you would like to use the
function
impute_mf(). This can be done using the install.packages command.
- Updated Author
- Fix bug in
surv_tmerge()that replicated the age for every measurement of each subject.
- First release
- Included 5 functions:
surv_tmerge()- creates a dataframe for repeated measures cox analysissurv_cox()- creates a cox modelsurv_gethr()- extracts hazard ratios from your cox modelmerge_diftime()- merges two datasets that has different measurement timesimpute_mf()- imputes missing values in a dataframe using missForest package (CAUTION: not tested)
- Included 4 dataframes:
data_SLAM_census- SLAM census infodata_SLAM_surv- SLAM survival infodata_SLAM_gluc- SLAM glucose infodata_SLAM_nmr- SLAM nmr info