compute_ecdf | R Documentation |
Compute cumulative density of change score for eCDF plot. This is the true empirical density, using the stats::ecdf function: https://github.com/SurajGupta/r-source/blob/master/src/library/stats/R/ecdf.R which uses the stats::approxfun function
compute_ecdf( dat = NULL, anchor.group = NULL, time.var = NULL, timepoint = NULL, change.score = NULL )
dat |
pass the dataframe, must contain the anchor group and the change score |
anchor.group |
indicate the name of the anchor group |
time.var |
variable of the Time in the dataframe - PLEASE CHECK THAT THIS IS CORRECTLY ORDERED, default is Time |
timepoint |
default here is to just use the final timepoint, e.g., "Time_4". Please be sure to have ordered your time variable correctly. |
change.score |
indicate the name of the PRO change score |
character vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.