Survival Analysis Part 11 | Cox Proportional Hazards Model in R with RStudio

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 65

  • @hananalahmadi461
    @hananalahmadi461 4 года назад +10

    You are the best one who explain survival analysis , thanks aloooooot

  • @muhammedhadedy4570
    @muhammedhadedy4570 2 года назад

    The best explanation for Cox regression model on RUclips.
    Thanks a lot.

  • @waleoladimeji3325
    @waleoladimeji3325 3 года назад +1

    This is an excellent survival analysis video. Coxph model clearly explained.

  • @myramacarulay8715
    @myramacarulay8715 2 года назад +1

    Thank you so much for these videos on survival analysis!

  • @pradnyachavan7660
    @pradnyachavan7660 4 года назад +2

    One of the best videos. Thank you

  • @eduardoa.rebollartellez6578
    @eduardoa.rebollartellez6578 3 года назад +3

    Thank you very much for such a nice explanation. Question: where can I check the dataset?

  • @pasdif74
    @pasdif74 3 года назад +3

    Thanks for your videos! Very clear and explaining. How can I get the whole script for all models (KM, exp, weibull)? Thanks in advance!

  • @marconte89
    @marconte89 3 года назад +12

    Good morning. Thank you Professor Marin for this interesting and clear explanation. I would ask just one question: where i can find the R script of this video? I would like to test interactions and other aspects of Cox Models. Could you please tell us where to find these materials? I thank you very much for your incredible work.

    • @dong2941
      @dong2941 2 года назад

      # prepare data
      library("survival")
      Stan_prepare=0)
      Stan

  • @ehsoon3549
    @ehsoon3549 Год назад

    Hi Marin, thanks for sharing this useful tutorial.
    I have a question: in the beginning of the analysis where you changed the classes of 'Over40' and 'MisMatchLevel' variables, shouldn't we change the class of 'Status' as well and make it a factor? Or, perhaps, it was already a factor?

  • @maquialminaza4064
    @maquialminaza4064 3 года назад +4

    Where can I get the sample data?

  • @jefersonfreitas2883
    @jefersonfreitas2883 2 года назад +3

    Hi! Thank you for the videos! They are excellent! Where can I find the script for fitting a exponential model?

    • @siskafmalau
      @siskafmalau 10 месяцев назад

      waiting for the script too

  • @jzam5426
    @jzam5426 3 года назад +2

    Thanks for the clear explanation! Do you have a follow-up video assessing confounders?

    • @marinstatlectures
      @marinstatlectures  3 года назад

      I don’t for survival. These are part of a course I teach. We start with linear regression, and discuss confounding there. Then we move to logistic regression, and also look at confounding there. Because the concept and assessment of confounding is the same regardless of the regression model used, for poisson regression and survival analysis (the last 2 models in the course) we just cover the models, and state that “confounding, model building, etc, is the same here”. You can see the full course video playlist here: ruclips.net/p/PLqzoL9-eJTNBDAG955KrzpduiPCj8-_3m

  • @colargol8723
    @colargol8723 2 года назад +2

    Where are the dataset files to practice? many thanks

  • @ss.rashmi
    @ss.rashmi Год назад

    Why did you not convert the 'Status' variable using as.factor() and only converted 'MisMatchLevel' and 'Over40'? Is it required to use Y variables as numeric in the coxph() function?

  • @askerredk1629
    @askerredk1629 2 года назад

    Thank you! As others have said, it would tremendously useful to also access the R script. Is that possible? Couldn't find it on your website. Thanks.

  • @ga3bi
    @ga3bi 3 года назад

    Thank you for this awesome lesson!

  • @Holistic-Ilm
    @Holistic-Ilm Год назад +2

    Could you please share the dataset so that I can follow?

  • @birasafabrice
    @birasafabrice 2 года назад

    thank you for this helpful video, gained a new sub!

  • @bobo0612
    @bobo0612 3 года назад

    Wonderful! Thank you for sharing!

  • @deprofundis3293
    @deprofundis3293 Год назад

    Please, you say we can get the R script to see further code for dealing with confounding factors and interactions, but there's no link to the script! Many others have asked for this, too, with no answer. I checked your website as well and it doesn't include any script for the survival stuff. Please help!

  • @e.n3010
    @e.n3010 2 года назад

    Many thanks for the very useful tutorial.
    I have a question which I'm struggling to resolve for quite a while, how I can calculate the sample size for this (multivariable cox regression)?

  • @srinivasansridhar5037
    @srinivasansridhar5037 3 года назад

    Thanks! Your videos are awesome!

  • @亓孟瑶
    @亓孟瑶 2 года назад +1

    why do my data set "heart" in R differ from it shown in video?

  • @linhvivuuu4693
    @linhvivuuu4693 2 года назад

    could anyone explain me that in the imported data file I did not see the total number but after calculating I saw the number n=157, where it come from?

  • @suprateekat5338
    @suprateekat5338 3 года назад

    Thank you this is very helpful!!

  • @alexmuller702
    @alexmuller702 3 года назад +1

    Some of the best R stats videos on youtube, thanks so much! I have a question: How do you know in the interpretation, that the hazard ratio (1.030 in this case) refers to exactly 1 year difference..? My guess is because in this case age is given as an integer... but what if you replaced age with a continuous memasurement that is not given as integers but with many decimal places..?

    • @pablofernandezesteberena7456
      @pablofernandezesteberena7456 3 года назад +1

      Hi, it's not because age is given as integer or real values, but because the units used for it are years. Think of it like any slope (or derivative), the value of a slope of a line indicates how much change you get in the dependent variables if the independent variables increases by 1 unit. In this case 1.030 is the slope of the linear term "age" in the model for the log of the harzard ratio.

    • @alexmuller702
      @alexmuller702 3 года назад

      @@pablofernandezesteberena7456 Thanks a lot! I guess for some other variables it would be easier to interpret the change per standard deviation instead of per unit...

    • @pablofernandezesteberena7456
      @pablofernandezesteberena7456 3 года назад +1

      @@alexmuller702 That is what you would get if you calculate the Z-score for your variable before doing the fit, Z=(x-mean(x))/SD(x). By dividing by the standard deviation you get a value in units of standard deviation. If that is useful for you just be careful to convert the coefficients correctly if you want to go back to x with its regular units.

    • @alexmuller702
      @alexmuller702 3 года назад +1

      @@pablofernandezesteberena7456 Thanks a lot Pablo!

  • @jiamingli1109
    @jiamingli1109 3 года назад

    Can you do a hypothesis test for testing if two coefficients are equal? How do we get AIC value from Cox regression model?

  • @pradipmoon7469
    @pradipmoon7469 4 года назад

    If the concordance index is less for example c-index 0.5. How we can improve this concordance index in R language? If we used optimisation method then which parameters we need to used in Coxph function. Thank you.

  • @nghnfhrth
    @nghnfhrth 4 года назад

    When we cannot estimate survival function using cox ph model, why is R giving a survival plot for "autoplot(survfit(Cox. Mod))" command... What does the plot mean?

  • @lynnl2033
    @lynnl2033 2 года назад

    very clear

  • @ss.rashmi
    @ss.rashmi Год назад

    Where can I find your R Script?

  • @michmartin6976
    @michmartin6976 4 года назад +1

    how to use age as timescale in.a cox regression .need help for my thesis please

  • @steeltypemetal
    @steeltypemetal 3 года назад +1

    FYI when you convert to percentage with HR - 1 at ~6:25, you say "68% MORE likely to die" but the text states "68% times AS likely to die" which I think is a different meaning. Maybe could include a textbox for clarification.

    • @marinstatlectures
      @marinstatlectures  3 года назад

      Yeah the text is a typo. I must have copied the previous text box but not changed that phrasing. RUclips removed the ability to add a text box annotation with the correction…kind of annoying they did that. But yes what I say is correct, but the writing there is a bit off

    • @YaraIhab-m7x
      @YaraIhab-m7x 10 месяцев назад

      Thank you for this great explanation of performing Cox regression on R and HR interpretation!
      Please help us find the r script or the source we can get it from. I really need it.
      @@marinstatlectures

  • @wl9318
    @wl9318 3 года назад

    Live saver!

  • @shashidhungel6167
    @shashidhungel6167 4 года назад

    Do you have a repo for the scripts?

  • @kaktalaviles7764
    @kaktalaviles7764 Год назад

    where can I find the scripts?

  • @vigneshcs3162
    @vigneshcs3162 4 года назад +1

    Where to get the dataset?

    • @joljolie
      @joljolie 4 года назад +1

      It's one of the datasets included in the "survival" packages in R, load it in as "hearts"

  • @azizal-azfar1930
    @azizal-azfar1930 4 года назад

    Where can I get some data like this to work on as practice?

    • @babelfish567
      @babelfish567 3 года назад +7

      2 months late but if you need it:
      library(survival)
      mismatchlevel

    • @naumanahmad4847
      @naumanahmad4847 3 года назад

      @@babelfish567 how to get the all script r coding file

  • @valor36az
    @valor36az 3 года назад

    What if the exp(coeff) is greater than 2?

  • @jychoi1213
    @jychoi1213 4 года назад

    Thank you for wondeful lecture. I am also using Cox hazard model for analysis, and I just came up with a question and wondered if anyone else is having a similar problem. I just found out that 'Coxph(Surv(time1, time2, event)~variable1+variable2)' returns the same outcome as 'Coxph(Surv(time2, event)~variable1+variable2)', meaning that onset time does not affect the result. Furthermore, if I set 'futime=time2-time2' and codes 'Coxph(Surv(time2, event)~variable1+variable2)', it returns a different result. It seems as if Coxph function only considers endtime and not onset time. Is it just me having this kind of problem?

    • @joljolie
      @joljolie 4 года назад

      Mmmh! Interesting... I am assuming it might have to do with the memoryless property implicitly assumed by the standard Cox. Worth some more research though

  • @pedrolavinas5568
    @pedrolavinas5568 4 года назад +1

    how can i get the dataset?

    • @joljolie
      @joljolie 4 года назад +4

      It's one of the datasets included in the "survival" packages in R, load it in as "hearts"

    • @sskfrey
      @sskfrey 4 года назад +2

      You can take the stanford2 dataset, which is part of the survival package and use cut() to generate Stan$Over40 and Stan$MisMatchLevels

    • @naumanahmad4847
      @naumanahmad4847 3 года назад +6

      library(survival)
      mismatchlevel

    • @guihuajia7696
      @guihuajia7696 Год назад

      @@joljolie > library(survival); > data(). then we can see: heart>----Stanford Heart Transplant data. thank you.

  • @shivarajk6618
    @shivarajk6618 Год назад

    more clear

  • @nabilala2295
    @nabilala2295 4 года назад +1

    Extended cox reggression with r

  • @javierpadillah
    @javierpadillah Месяц назад

    script?