Discrete time survival function

조회 수: 1 (최근 30일)
God'stime Eigbiremolen
God'stime Eigbiremolen 2018년 1월 20일
댓글: God'stime Eigbiremolen 2018년 1월 21일
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
Walter Roberson
Walter Roberson 2018년 1월 20일
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 2018년 1월 21일
Alright...many thanks, Walter.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2018년 1월 20일
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
God'stime Eigbiremolen
God'stime Eigbiremolen 2018년 1월 20일
Yes, it is. Thanks all the same Star.
Star Strider
Star Strider 2018년 1월 20일
My pleasure.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Industrial Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by