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

  Рет қаралды 73,013

MarinStatsLectures-R Programming & Statistics

MarinStatsLectures-R Programming & Statistics

Күн бұрын

►► Watch More:
► Statistics Course for Data Science bit.ly/2SQOxDH
►R Course for Beginners: bit.ly/1A1Pixc
►Getting Started with R using R Studio (Series 1): bit.ly/2PkTneg
►Graphs and Descriptive Statistics in R using R Studio (Series 2): bit.ly/2PkTneg
►Probability distributions in R using R Studio (Series 3): bit.ly/2AT3wpI
►Bivariate analysis in R using R Studio (Series 4): bit.ly/2SXvcRi
►Linear Regression in R using R Studio (Series 5): bit.ly/1iytAtm
►ANOVA Statistics and ANOVA with R using R Studio : bit.ly/2zBwjgL
►Hypothesis Testing Videos: bit.ly/2Ff3J9e
►Linear Regression Statistics and Linear Regression with R : bit.ly/2z8fXg1
Follow MarinStatsLectures
Subscribe: goo.gl/4vDQzT
website: statslectures.com
Facebook: goo.gl/qYQavS
Twitter: goo.gl/393AQG
Instagram: goo.gl/fdPiDn
Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)
These videos are created by #marinstatslectures to support some statistics courses at the University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials ), although we make all videos available to the everyone everywhere for free.
Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!
#statistics #rprogramming

Пікірлер: 64
@muhammedhadedy4570
@muhammedhadedy4570 Жыл бұрын
The best explanation for Cox regression model on KZbin. Thanks a lot.
@hananalahmadi461
@hananalahmadi461 4 жыл бұрын
You are the best one who explain survival analysis , thanks aloooooot
@waleoladimeji3325
@waleoladimeji3325 2 жыл бұрын
This is an excellent survival analysis video. Coxph model clearly explained.
@myramacarulay8715
@myramacarulay8715 2 жыл бұрын
Thank you so much for these videos on survival analysis!
@pradnyachavan7660
@pradnyachavan7660 4 жыл бұрын
One of the best videos. Thank you
@ga3bi
@ga3bi 2 жыл бұрын
Thank you for this awesome lesson!
@bobo0612
@bobo0612 2 жыл бұрын
Wonderful! Thank you for sharing!
@srinivasansridhar5037
@srinivasansridhar5037 3 жыл бұрын
Thanks! Your videos are awesome!
@suprateekat5338
@suprateekat5338 3 жыл бұрын
Thank you this is very helpful!!
@eduardoa.rebollartellez6578
@eduardoa.rebollartellez6578 3 жыл бұрын
Thank you very much for such a nice explanation. Question: where can I check the dataset?
@pasdif74
@pasdif74 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!
@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)?
@lynnl2033
@lynnl2033 2 жыл бұрын
very clear
@michmartin6976
@michmartin6976 4 жыл бұрын
how to use age as timescale in.a cox regression .need help for my thesis please
@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?
@wl9318
@wl9318 3 жыл бұрын
Live saver!
@maquialminaza4064
@maquialminaza4064 3 жыл бұрын
Where can I get the sample data?
@jzam5426
@jzam5426 3 жыл бұрын
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: kzbin.info/aero/PLqzoL9-eJTNBDAG955KrzpduiPCj8-_3m
@pradipmoon7469
@pradipmoon7469 3 жыл бұрын
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.
@marconte89
@marconte89 3 жыл бұрын
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
@jefersonfreitas2883
@jefersonfreitas2883 Жыл бұрын
Hi! Thank you for the videos! They are excellent! Where can I find the script for fitting a exponential model?
@siskafmalau
@siskafmalau 3 ай бұрын
waiting for the script too
@shashidhungel6167
@shashidhungel6167 4 жыл бұрын
Do you have a repo for the scripts?
@ehsoon3549
@ehsoon3549 6 ай бұрын
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?
@codingnmath
@codingnmath Жыл бұрын
Could you please share the dataset so that I can follow?
@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?
@valor36az
@valor36az 3 жыл бұрын
What if the exp(coeff) is greater than 2?
@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?
@colargol8723
@colargol8723 Жыл бұрын
Where are the dataset files to practice? many thanks
@ss.rashmi
@ss.rashmi 7 ай бұрын
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?
@user-yk3zk3xh2h
@user-yk3zk3xh2h 2 жыл бұрын
why do my data set "heart" in R differ from it shown in video?
@alexmuller702
@alexmuller702 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@@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 2 жыл бұрын
@@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 2 жыл бұрын
@@pablofernandezesteberena7456 Thanks a lot Pablo!
@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
@deprofundis3293
@deprofundis3293 9 ай бұрын
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!
@ss.rashmi
@ss.rashmi 9 ай бұрын
Where can I find your R Script?
@azizal-azfar1930
@azizal-azfar1930 3 жыл бұрын
Where can I get some data like this to work on as practice?
@babelfish567
@babelfish567 3 жыл бұрын
2 months late but if you need it: library(survival) mismatchlevel
@naumanahmad4847
@naumanahmad4847 3 жыл бұрын
@@babelfish567 how to get the all script r coding file
@vigneshcs3162
@vigneshcs3162 4 жыл бұрын
Where to get the dataset?
@joljolie
@joljolie 4 жыл бұрын
It's one of the datasets included in the "survival" packages in R, load it in as "hearts"
@shivarajk6618
@shivarajk6618 8 ай бұрын
more clear
@kaktalaviles7764
@kaktalaviles7764 Жыл бұрын
where can I find the scripts?
@nabilala2295
@nabilala2295 3 жыл бұрын
Extended cox reggression with r
@pedrolavinas5568
@pedrolavinas5568 4 жыл бұрын
how can i get the dataset?
@joljolie
@joljolie 4 жыл бұрын
It's one of the datasets included in the "survival" packages in R, load it in as "hearts"
@sskfrey
@sskfrey 3 жыл бұрын
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 жыл бұрын
library(survival) mismatchlevel
@guihuajia7696
@guihuajia7696 11 ай бұрын
@@joljolie > library(survival); > data(). then we can see: heart>----Stanford Heart Transplant data. thank you.
@cathaplexy8164
@cathaplexy8164 2 жыл бұрын
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. KZbin 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 3 ай бұрын
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
@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.
Survival Analysis Part 12 | Checking Cox PH Model Assumptions in R with RStudio
9:01
MarinStatsLectures-R Programming & Statistics
Рет қаралды 37 М.
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 41 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
A Guide to Hazard Ratios: What They Are and How To Communicate Them
6:00
The Winton Centre
Рет қаралды 55 М.
Survival Analysis Part 5 | Kaplan Meier Model in R with RStudio
17:55
MarinStatsLectures-R Programming & Statistics
Рет қаралды 72 М.
Video 7 - Cox regression with a time-depedent covariate
13:41
Interpreting Hazard Ratios
5:01
Terry Shaneyfelt
Рет қаралды 329 М.
Survival Analysis | Statistics for Applied Epidemiology | Tutorial 11
25:40
MarinStatsLectures-R Programming & Statistics
Рет қаралды 59 М.
Survival Analysis Part 1 | What is Censoring?
9:31
MarinStatsLectures-R Programming & Statistics
Рет қаралды 121 М.
Positron IDE doing Data Analysis with R (Public Beta)
32:44
TheCoatlessProfessor
Рет қаралды 1,4 М.
The Cox proportional hazards model explained
13:36
TileStats
Рет қаралды 15 М.
Survival Analysis Part 10 | Model Assumptions for Cox Proportional Hazards Model
11:02
MarinStatsLectures-R Programming & Statistics
Рет қаралды 48 М.
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 41 МЛН