Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Survival analyses require two variable: 1) whether or not it is a "Censored" event, and 2) the length of time to the event of interest.

Censored Event

Choose Select the event date (e.g., death) and using the following function

function main(deathDate) {

  if (isNull(V1deathDate)) {

    return 0;

  }

  return 1;

}

Length of Time to Event

Choose the Select the event date (e.g., death), baseline date and the last available encounter date (will need all encounter dates, unless using an "Output Interval" containing the baseline and last follow-up).

 

function getLength() {

if isNull(baselineDate) {

...