Check inputs to create clones

create_clones_check_inputs(
  df,
  id,
  event,
  time_to_event,
  exposure,
  time_to_exposure,
  ced_window
)

Arguments

df

A data.frame with one row per patient.

id

The name of the column in df that contains the patient identifier.

event

The name of the column in df that contains the event of interest.

time_to_event

The name of the column in df that contains the time to event.

exposure

The name of the column in df that contains the exposure.

time_to_exposure

The name of the column in df that contains the time to exposure.

ced_window

The date at which the clinical eligibility window closes. exposure and time_to_exposure

Value

TRUE if inputs are valid else false