Determines the optimal cutoff point for a continuous variable in survival analysis using the maximally selected rank statistics method. Creates a binary variable based on the identified cutoff and adds it to the input data frame.
Arguments
- pdata
Data frame containing survival information and the continuous variable.
- variable
Character string specifying the name of the continuous variable for which the optimal cutoff should be determined.
- time
Character string specifying the column name containing time-to-event data. Default is `"time"`.
- status
Character string specifying the column name containing event status (censoring information). Default is `"status"`.
- print_result
Logical indicating whether to print detailed results including cutoff value and Cox model summaries. Default is `TRUE`.