subtract_times: Subtract time

Description Usage Arguments Details Value

View source: R/survival_fit.R

Description

Subtract time

Usage

1
subtract_times(subset_data, to_subtract, this_time_col, set_name, condition)

Arguments

subset_data

some data

to_subtract

the number to subtract from times

this_time_col

the name of the time column

set_name

in case needed for error message

condition

in case needed for error message

Details

This is for fitting subsets that are defined by being after a certain time, and we want to fit as if the cutoff time is the new base time.

Moved into a separate function to get the error check and lengthy construction of an error messageout of the main flow.

Value

the data, with 'to_subtract“ subtracted from the time column


MattWiener/heemodFits documentation built on May 19, 2019, 8:21 a.m.