Category "survival-analysis"

Kaplan meier calculation with alive, died and censor in python

I have data of years and how many survived, died and censor (withdraw) each year. Sample data is given below. It shows year, status, and total individuals in th

testing for proportional hazards: cox.zph()

I am confused on what the cox.zph is showing. I came across this test in documentation for the finalfit package, and there was this bit under the heading "Testi

How to interpret PySurvival's predict_survival output?

I've built a model using PySurvival's CoxPH model and then ran the predict_survival function to check its output. Here's a sample of the output it provides when

Create a column includes all confidence intervals

I have a code like that : library("survival") library("survminer") data("lung") res.cox <- coxph(Surv(time, status) ~ sex, data = lung) x<-confint(res.

What is the solution to Error during conditional logistic regression in R?

set<-c(1,1,1,2,2,2) gender<-c(1,0,1,0,1,0) smoke<-c(1,1,0,0, 1,0) case_control<-c(1,0,0,1,0,0) data<-data.frame(set, gender, smoke, case_c

How to generate covariate-adjusted cox survival/hazard functions?

I'm using the survminer package to try to generate survival and hazard function graphs for a longitudinal student-level dataset that has 5 subgroups of interest

Add at risk table and 95% confidence intervals to adjusted survival curves using survminer package in r

I want to add at-risk table and 95% confidence intervals to adjusted survival curves. Something like survival curves below (Link). I saw some relevant code here

Making an adjusted Kaplan Meier Surve Curve

I am doing a study looking at the long-term survival of patients admitted to an Intensive Care Unit. I have done a multivariate Cox regression to describe the a