Tagged Questions

Survival analysis is the statistics of censored time to event data, to which standard regression and classification techniques generally do not apply, due to the uncertain group memberships of the observations.
The name originated from biological systems where the outcome of interest was indeed ...

I'm plotting an incidence curve using the survplot package in R. I'm using the xlim option to limit the x-axis of my graph from 0-28. However, when I do this the x-axis will always extend to 30. The ...

I am trying to do survival analysis in matlab and want to calculate log rank test scores among several curves. I found a possible code to do log rank here. But based on its description, it can only do ...

Below is example data where in genomicmatrix, each row corresponds to a gene ("sample"), and each cell corresponds to a value for that gene for a patient after which the column is named (in the format ...

I would like to calculate the life-years lost due to a disease in a way that I correct for other variables in the model (corrected group prognosis method). My dataset is a cohort of individuals for ...

The muhaz package estimates the hazard function from right censored data using kernel smoothing methods. My question is, is there any way to obtain confidence intervals for the hazard function that ...

Is it possible to fit flexible hazard models in R with prespecifying a hazard function? For example I have a data generating process I know it results in a U-shaped hazard function. How can I fit a ...

Is it possible to do bootstrap in survival analysis, says Kaplan-meier estimates?
If so, how should I do it?
I have read some articles, but they are too complicated. There's a function called BootKM ...

I'm trying to figure out how to calculate some probabilities after running survival analysis using coxph from the survival package. I've read a bunch of posts but I can't seem to find one that answers ...

I am doing Kaplan Meier Analyses with the survival package and need to display the concrete number of survivors for certain time periods in a Kaplan Meier plot.
For better traceability let's use the ...

I have been preparing survival analysis and cox regression in R. However, my line manager is a Stata user and wants the output displayed in a similar way as Stata would display it, e.g.
# Stata code
...

I have data called veteran stored in R. I created a survival model and now wish to predict survival probability predictions. For example, what is the probability that a patient with 80 karno value, ...

I am trying to use R to do survival analysis. In my case, each has a different staring point for the time to event dimension. In STATA there is an option called origin that takes care of this, but I ...

I'm performing a cross validation on a competing risks proportional hazards model. With help from the mstate pacakge, I've prepared my data and am fitting it with survival::coxph. I get a fitted Cox ...

I'm in the process of writing some functions to extract information from the results of a survival analysis and I ran into a discrepancy between my extraction of the lower and upper survival time as ...

I am new to survival analysis and survfit in R. I want to extract survival probabilities for 4 groups (diseases) at specified time periods (0,10,20,30 years since diagnosis) in a table. Here is the ...

I'm trying to figure out the quickest way to get survival analysis data into a format that will allow for time varying covariates. Basically this would be a python implementation of stsplit in Stata. ...

I have set up an extended Cox model in R which contains one time-dependent covariate X1 (X2-X7 are time-independet)
coxph(Surv(start, stop, status) ~ X1 + X2 + ... + X7, data = data).
To include this ...

I am currently trying to implement the Prentice, Williams and Peterson extension of the Cox model in R on survival data but I want a parametric model and can not get it done. Is there maybe a package ...

I am running shared gamma frailty models (i.e., Coxph survival analysis models with a random effect) and want to know if it is "acceptable" to log transform one of your continuous predictor variables. ...

The itprint option in the class statement of SAS proc phreg causes the display of the iteration history. This includes a Ridge value, along with the beta values and log likelihoods for each iteration. ...