calc_risk_times | R Documentation |
calc_risk_times
calculates the risk times for each patient based on the given window lengths
calc_risk_times( df, end_time_col, curr_time_col, window_length, window_normalizer, col_name )
df |
the input dataframe |
end_time_col |
column containing the final time value a patient had data for |
curr_time_col |
column containing the time value that the row of data was collected |
window_length |
lenghts of the CPIU intervals in the model |
window_normalizer |
value to divide by |
col_name |
name you want the new column created to have |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.