Questions tagged [survival]

Survival analysis compares the statistical strength of predictors for events encoded as occuring or censored in concert with a time variable. It can be parametric or non-parametric.

445 questions
0
votes
1 answer

Creat survival object with both right-cens and left-truncated + right-cens observations

i have a problem creating my survival objects in R. I want to model the survival from suscription customers (monthly data), but for creating the survival objects i need to incorpore both types of censoring: the classic right censoring: some…
0
votes
1 answer

Providing dataframe and columns in separate arguments

I know how to draw survival curves (made by survival package) by autoplot from ggfortify. Here I use ovarian data frame, also from survival package. library(survival) library(ggfortify) autoplot(survfit(Surv(ovarian$futime, ovarian$fustat) ~…
Venca
  • 93
  • 1
  • 9
0
votes
1 answer

Fixed coefficient/Offset in Fine&Gray competing-risk adjusted model (FGR)

I want to fit a Fine&Gray competing risk adjusted model including an offset. In other types of models, I am used to being able to simply put in >offset(x), which will add an offset with coefficient 1. I tried to do the same using the FGR function…
Tami
  • 133
  • 8
0
votes
0 answers

Survival analysis for various timepoints

I am running survival analysis on a very large data set and attempting to examine the impact of a particular variable on survival at various time points (30 days, 90 days, 180 days, 365 days). I want to run a univariate Cox regression and I am not…
Sam
  • 11
0
votes
0 answers

In R what are the "ldcase" and "ldresp" residuals from survreg?

I am trying to understand what are the "ld" residuals that are produced from running the residual function on a survreg model? For example library(survival) mod <- survreg(Surv(time, status -1) ~ age , data = lung) residuals( mod ,…
gowerc
  • 1,039
  • 9
  • 18
0
votes
1 answer

How to deal with Censored instances?

I am working on a project to predict day to an event(graft failure) using machine learning approaches with a dataset containing about 900 variables, I am new to this area and I am not sure whether I am in the right track. At first, I used Neural…
sarah
  • 19
  • 2
  • 7
0
votes
0 answers

add text / labels to survival plot (kaplan Meier) in R

Want to add patient ID as labels to my survival plot. I know that I did not provide source data, sorry. But I guess, my problem could be solve anyway with you smart people ;-)…
Squaleolus
  • 23
  • 1
  • 4
0
votes
0 answers

Survdiff p-value comparison

I am trying to run a survival analysis on a set of data I have collected. In this data frame (m3), each row is a new patient and each column is a mutation I have identified. I have made a binary data table to indicate whether each patient is…
Matt
  • 17
  • 1
  • 5
0
votes
1 answer

forest_model not accepting factor variables with space in name

I am trying to plot a cox proportional hazard ratio model calculated with survival's coxph() using forestmodel's forest_model function. The covariates are factors, some of their name have a space in them ie. "Surgical Resection". When I enter these…
Maya Harary
  • 417
  • 1
  • 4
  • 7
0
votes
1 answer

Excel - What is the easiest way to calculate incidence plus prevalence over time?

Say I have the dataset below, what is the most efficient formula to fill the cells in column D, where the number of patients alive are calculated? Example data set in excel The way it should calculate is: month 1: 8*100% = 8 Month 2: 8*80%+6*100%…
Sander
  • 1
  • 1
  • 1
0
votes
1 answer

binning, grouping data in r using values withing a specific range to determine an event or change for survival analysis

I have a dataframe as follows: df <- data.frame(as.date=c("14/06/2016","15/06/2016","16/06/2016","17/06/2016","18/06/2016","19/06/2016","20/06/2016","21/06/2016","22/06/2016","23/06/2016", …
0
votes
0 answers

Generating survival time from survreg in R

I have a question about generating survival time using 'survreg' in R. First, using current data and 'survreg' function with weibull distribution, I did estimate weibull parameters(shape and scale) and beta for X. Then, I generated new survival…
Matt Lee
  • 1
  • 1
0
votes
1 answer

Survival dataset split by year starting at January 1st

I have the following survival dataset that I would like to split the interval by January 1st of each year. For example, for personid 1220, i would make the split at 1912-01-01, 1913-01-01, 1914-01-01, 1915-01-01. I tried to use survSplit but they…
Meo
  • 140
  • 1
  • 9
0
votes
1 answer

How can I convert cumulative hazard probabilities to conditional/marginal probabilities?

I am building a forecast model using AalenAdditiveFitter from Lifelines in Python to predict whether an event will occur or not and when. T (time) = months C (event) = 1 is yes and 0 is no In addition I have 8 attributes that I am using. aaf =…
zad0xlik
  • 183
  • 1
  • 4
  • 14
0
votes
1 answer

create survival curve with a list of dataframes

the survfit() function will not accept a list, so I need a way to unlist the result of Surv() without removing information from the column. For example, using the lung data: library(survival) attach(lung) lung$survObj <- with(lung, Surv(time,…
brucezepplin
  • 9,202
  • 26
  • 76
  • 129
1 2 3
29
30