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

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 64

  • @hananalahmadi461
    @hananalahmadi461 4 роки тому +9

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

  • @muhammedhadedy4570
    @muhammedhadedy4570 2 роки тому

    The best explanation for Cox regression model on UA-cam.
    Thanks a lot.

  • @waleoladimeji3325
    @waleoladimeji3325 2 роки тому +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!

  • @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

  • @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!

  • @maquialminaza4064
    @maquialminaza4064 3 роки тому +3

    Where can I get the sample data?

  • @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: ua-cam.com/play/PLqzoL9-eJTNBDAG955KrzpduiPCj8-_3m.html

  • @ss.rashmi
    @ss.rashmi 10 місяців тому

    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?

  • @jefersonfreitas2883
    @jefersonfreitas2883 Рік тому +3

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

    • @siskafmalau
      @siskafmalau 6 місяців тому

      waiting for the script too

  • @ehsoon3549
    @ehsoon3549 8 місяців тому

    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?

  • @deprofundis3293
    @deprofundis3293 11 місяців тому

    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!

  • @islam_basicknowledge
    @islam_basicknowledge Рік тому +1

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

  • @colargol8723
    @colargol8723 2 роки тому +1

    Where are the dataset files to practice? many thanks

  • @ga3bi
    @ga3bi 2 роки тому

    Thank you for this awesome lesson!

  • @birasafabrice
    @birasafabrice Рік тому

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

  • @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)?

  • @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!

  • @bobo0612
    @bobo0612 2 роки тому

    Wonderful! Thank you for sharing!

  • @jiamingli1109
    @jiamingli1109 2 роки тому

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

  • @michmartin6976
    @michmartin6976 4 роки тому +1

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

  • @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.

  • @linhvivuuu4693
    @linhvivuuu4693 Рік тому

    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?

  • @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.

  • @srinivasansridhar5037
    @srinivasansridhar5037 3 роки тому

    Thanks! Your videos are awesome!

  • @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?

  • @suprateekat5338
    @suprateekat5338 3 роки тому

    Thank you this is very helpful!!

  • @user-yk3zk3xh2h
    @user-yk3zk3xh2h 2 роки тому

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

  • @ss.rashmi
    @ss.rashmi 11 місяців тому

    Where can I find your R Script?

  • @kaktalaviles7764
    @kaktalaviles7764 Рік тому

    where can I find the scripts?

  • @valor36az
    @valor36az 3 роки тому

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

  • @cathaplexy8164
    @cathaplexy8164 2 роки тому +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  2 роки тому

      Yeah the text is a typo. I must have copied the previous text box but not changed that phrasing. UA-cam 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

    • @user-gj4gh8cj5n
      @user-gj4gh8cj5n 5 місяців тому

      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

  • @lynnl2033
    @lynnl2033 2 роки тому

    very clear

  • @shashidhungel6167
    @shashidhungel6167 4 роки тому

    Do you have a repo for the scripts?

  • @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

  • @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"

  • @wl9318
    @wl9318 3 роки тому

    Live saver!

  • @shivarajk6618
    @shivarajk6618 11 місяців тому

    more clear

  • @azizal-azfar1930
    @azizal-azfar1930 3 роки тому

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

    • @babelfish567
      @babelfish567 3 роки тому +5

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

    • @naumanahmad4847
      @naumanahmad4847 3 роки тому

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

  • @nabilala2295
    @nabilala2295 3 роки тому +1

    Extended cox reggression with r

  • @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 роки тому +5

      library(survival)
      mismatchlevel

    • @guihuajia7696
      @guihuajia7696 Рік тому

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