Discrete time survival function

1 Ansicht (letzte 30 Tage)
God'stime Eigbiremolen
God'stime Eigbiremolen am 20 Jan. 2018
Hello, Please I am still very new to MATLAB. I would like to know how to correctly write the overall survival function for each individual in my sample. That is, the likelihood that each individual survives up to the end of the duration less 1. Any help provided will be greatly appreciated. Thanks.
  8 Kommentare
Walter Roberson
Walter Roberson am 20 Jan. 2018
If it is the same number of hazards for each (even if that means a bunch of hazards with 0 threat) then you can prod() along the appropriate dimension to get the survival rate for each individual. I do not see any reason to cumprod() at the moment.
God'stime Eigbiremolen
God'stime Eigbiremolen am 21 Jan. 2018
Alright...many thanks, Walter.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Star Strider
Star Strider am 20 Jan. 2018
There are several discussions of survival analysis in the Statistics and Machine learning Toolbox documentation. See for example the coxphfit (link) function. Follow the links at the end of that page for other extended discussions on the same topic.
  4 Kommentare
God'stime Eigbiremolen
God'stime Eigbiremolen am 20 Jan. 2018
Yes, it is. Thanks all the same Star.
Star Strider
Star Strider am 20 Jan. 2018
My pleasure.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by