You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reformat the data for Discrete Time Markov Cohort Models (https://hesim-dev.github.io/hesim/articles/mlogit.html) - I would have to reformat the data in such a way, such that it represents transitions between states:
It appears as though there is no way to but to eliminate the last row of data for each patient - as this will be the last available transition for that patient. This means, that we will be forced to lose one row of data for each patient.
In cases where the patient experiences an absorbing event (e.g. death) - in these cases, it is not a problem. However, in cases where the patient is "right censored" (i.e. has the event after the end of the study) - there is nothing we can do to account for censoring other than removing the last row of data for each patient.
Is my understanding of this correct?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi Dr. Incerti,
Suppose I have data in R that looks like this:
To reformat the data for Discrete Time Markov Cohort Models (https://hesim-dev.github.io/hesim/articles/mlogit.html) - I would have to reformat the data in such a way, such that it represents transitions between states:
It appears as though there is no way to but to eliminate the last row of data for each patient - as this will be the last available transition for that patient. This means, that we will be forced to lose one row of data for each patient.
In cases where the patient experiences an absorbing event (e.g. death) - in these cases, it is not a problem. However, in cases where the patient is "right censored" (i.e. has the event after the end of the study) - there is nothing we can do to account for censoring other than removing the last row of data for each patient.
Is my understanding of this correct?
Thanks!
The text was updated successfully, but these errors were encountered: