getTrajectoriesDiscrete: Convert the imported cohort data to patient treatmnet...

getTrajectoriesDiscreteR Documentation

Convert the imported cohort data to patient treatmnet trajectories

Description

This function outputs a data.frame object which describes the movement of patients between the defined states

Usage

getTrajectoriesDiscrete(
  cdm,
  cohortData,
  stateDuration = 30,
  stateSelection = 1,
  statePriorityVector = NULL,
  absorbingStates = NULL,
  oocFix = "None",
  studyName = "",
  addPersonalData = TRUE,
  allowedStatesList = list()
)

Arguments

cdm

a cdm object

cohortData

A data.frame object which is queried with getCohortsPatients function

stateDuration

The length of a discrete state

stateSelection

The chosen state selection method

statePriorityVector

The order of priority for states

absorbingStates

The absorbing states: patient trajectory ends with it

oocFix

The method to use for replacing "OUT OF COHORT" states with more relevant states

studyName

name chosen for study, is used as a folder name

addPersonalData

Logical, indicating whether or not to add personal data for each patient

allowedStatesList

A list object which indicates accessible states from said state


HealthInformaticsUT/Cohort2Trajectory documentation built on March 1, 2025, 7:47 p.m.