data_SLAM_*
datasets and replaced them with 2 simplified ones:
gluc
and nmr
. These only contain cohorts 1-3 and they have both census and
survival information to make examples shorter.add_delta()
was renamed to mutate_delta()
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()
add_delta()
merge_difdate()
merge_diftime()
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.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.impute_mf()
. This can be done using the install.packages command. surv_tmerge()
that replicated the age for every measurement of
each subject.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)data_SLAM_census
- SLAM census infodata_SLAM_surv
- SLAM survival infodata_SLAM_gluc
- SLAM glucose infodata_SLAM_nmr
- SLAM nmr infoAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.