| reconstruct_cutpoints | R Documentation |
Checks whether all cut points up to the maximum observed time are present in
newdata. If not, expands the data frame to include the missing
breakpoints via expand_df. In either case the function guarantees that
an interval-length column (default intlen) exists on return.
Existing grouping is preserved after expansion.
reconstruct_cutpoints(newdata, object, time_var, interval_length)
newdata |
A data frame with a time column and, optionally, grouping.
Must carry the |
object |
A fitted PAM/PAMM model object, passed to |
time_var |
Character name of the time variable (e.g. |
interval_length |
Character name of the interval-length column. If
absent from |
A data frame with all required breakpoints present and an
interval_length column guaranteed to exist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.