I need to do the research about the risk factors that contribute to heart failure. The data I have just the censored data with some risk factors of heart failure. And I need to use logistic regression and exponential regression to find out the risk factors that contribute to heart failure. The censored data define as 0=censored, 1=died, can I use this as my dependent variable for logistic regression? If not, if someone got data that related the risk factors that contribute to heart failure which can use exponential and logistic regression to find out the risk factors of heart failure, is possible to share with me?
-
1$\begingroup$ censored is fine - so long as you keep that in mind when building your model. for example, you probably want to include "exposed to risk" time in your model (i.e. how long you observed the 0s and 1s) $\endgroup$– probabilityislogicCommented Apr 20, 2019 at 6:13
-
$\begingroup$ Hi, TQ for answering my question. So, I can use the censored data(0=censored, 1=died) as my response variable in logistic regression? Cuz I wondering that logistic regression only apply in dichotomous outcome(i.e.0=survive,1=died),but I just have censored data(0=censored, 1=died)as my response variable. Is it make my result to be biased? $\endgroup$– NatalieCommented Apr 21, 2019 at 3:40
2 Answers
Time-to-event analysis (the field of survival analysis) exists primarily because of the need to handle censoring. When subjects are followed different lengths of time, the binary logistic model has no way to handle this. For example suppose that one subject was followed only one week and was event-free as of that time. Her time-to-event is recorded and used in survival analysis as 7+ days. Another subject followed one year without an event would be used as 365+ days. The 7+ days subject contributes very little to the analysis - it's almost as if she isn't there. The 365+ days subject contributes in a significant way. Treating these values as right-censored is the way to account for different follow-up periods, and to account for what we don't know.
Even were there no censoring (loss to follow-up), using a binary logistic model would be a mistake because it treats a failure at one day as no worse as a failure at 5 years. This is a huge information loss that leads to loss of statistical power and precision.
Finally there is the "how useful is the output" question. A single survival model can be used to estimate the probability of surviving at least t days for many different t.
-
$\begingroup$ Thanks for replying my question. I am still confuse, my data is something like this: survival time:97 180 31...event(status): 0 0 1...which 0=censored and 1=died, smoking: 0 1 1....which 0=non smoker and 1=smoker, ejection fraction: 50 30 20...,so how can I use this data to carry out logistic regression? $\endgroup$– NatalieCommented Apr 22, 2019 at 1:23
-
$\begingroup$ The point of my answer was to demonstrate why you should not use logistic regression here. Use a method from survival analysis that properly handles censoring and keeps all the information in time-to-event. $\endgroup$ Commented Apr 22, 2019 at 12:41
-
$\begingroup$ @FrankHarrell, does your above answer still apply to the LONGITUDINAL binary/ordinal logistic model i.e. expanding the data to long format and modeling time using a flexible spline? Your interesting post demonstrates that this model approximates the Cox model $\endgroup$ Commented Nov 19, 2022 at 16:08
You just need to connect your data to your inference properly. If the inference is not the one you want to make, then you need to change the model.
it might help to think of two scenarios. the first you observed everyone for say 10 years. Then your model is really a prediction of "person lives for at least 10 years".
for the second suppose that you observed the 0s for just 1 year, but the 1s were watched for 10 years. Then you can perfectly predict the outcome in this sample by simply having a variable "person was watched for 2 years or more".
your real data will be somewhere in between, but you need to include "time exposed to risk" somehow in your model. when including an "exposed to risk" in your model, your inferences may change, and your predictions now become dependant on this.
you may also want to include or test for interactions between the "exposed to risk" variable and your other predictors.
-
1$\begingroup$ Using time exposed to risk is using a dependent variable as an independent variable and will result in an uninterpretable result. $\endgroup$ Commented Apr 21, 2019 at 12:15