Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 2129

Survival analysis models time to event data, typically time to death or failure time. Censored data are a common problem for survival analyses.

2 votes

Correcting for a covariate in a Kaplan-Meier curve

Here is a stratified model build based on the tiny test set you offered library(survival) gender <- as.factor(c("Female", "Male", "Female", "Male", "Male", "Male", "Female", "Female", "Female", "Male") … Therneau & Gambsch's text "Modeling Survival Data" has an excellent chapter. …
DWin's user avatar
  • 7,806
2 votes

What is the quantity "risk" in survival analysis?

The "absolute risk" is the events per unit time divided by the number of individuals susceptible to the event under observation. It is specifically not the value of S(t). During periods of no risk the …
DWin's user avatar
  • 7,806
1 vote

Competing hazards for event that makes the event of interest more likely

I think you might look for modeling frameworks where clients are in a few different states (perhaps: new user, established-user, established-new-problem, frustrated-user) and use survival analysis to … The survival package in R (which is what your citation was using) also has a multi-state outcome type, but it's description seems to imply that various states are either censored or "absorbing" (in the …
DWin's user avatar
  • 7,806
1 vote

Survival analysis with cures when it is known that for some subjects the event (death) will ...

This is a bit likethe data presentations done by oncologists and transplant surgeons where Kaplan-Meier plots of "progression-free survival" or "rejection-free survival" are presented, but when you read … It rather stands the meaning of "survival" on its head. The specialists are throwing up their hands and saying "not my fault!" …
DWin's user avatar
  • 7,806
5 votes

How to compare Harrell C-index from different models in survival analysis?

Harrell would advise that you NOT do so: How to do ROC-analysis in R with a Cox model Doing model comparison with LR statistics is more powerful than using methods that depend on an asymptotic distr …
DWin's user avatar
  • 7,806
2 votes

Understanding survival at time function

Looking at both Therneau and Gramsch "Modeling Survival Data" and Kalbfleisch and Prentice "Statistical Analysis of Failure Time Data", the definition of S(t) is Pr(T>t) and all of their interval survival
DWin's user avatar
  • 7,806
1 vote

Compare KM curve to Cox Proportional Hazard model with multiple variables

(I don't understand why you didn't pose the question using one of the available datasets in the 'survival' package.) … In the survival package there is also a survfit function that can generate KM-like curves from model-objects that with no newdata argument will be the estimated survival function determined at the mean …
DWin's user avatar
  • 7,806
2 votes

Nested case-control and Cox proportional analysis

Shortening the time interval in this case will not reduce the power of test because statistical power in survival analysis comes from the numbers of events rather than the duration of the study. …
DWin's user avatar
  • 7,806
3 votes
Accepted

Performing contrasts among treatment levels in survival analysis

The methods description does not match up with anything I see in Crawley's chapter on survival analysis. … I do not see that the multiple comparisons problem is specific to survival analysis. …
DWin's user avatar
  • 7,806
1 vote

Is it valid to compare 'time to separation of curves' between 2 Kaplan-Meier curves?

It's fairly common for authors to notice and comment in the text of an article that the median time to failure or relapse is a particular interval. Of course, not all studies get to the point where th …
DWin's user avatar
  • 7,806
1 vote

For the survival analysis package in R, what is the log-likelihood of "survreg( Surv(time, c...

I think it would be more accurate to say that: $l(\theta) = \sum( \log(\theta) )- \sum( \theta Y_i)$ $l(\theta) = n_u \log(\theta) )- \sum( \theta Y_i)$ where u's are uncensored and Y's are observa …
DWin's user avatar
  • 7,806
1 vote

Goodness of fit – Testing Cox proportional hazard assumption in R

For further information on how the authors of the survival package use cox.zph, I recommend Chapter 6:"Testing Proportional Hazards" in their book, "Modeling Survival Data". …
DWin's user avatar
  • 7,806
1 vote

Cox Regression: Testing for effect in subgroup

As far as R programming goes, the formula you offer is equivalent to: s ~ age * treatment The asterisk-operator is overloaded in R. When its arguments are numeric, it is multiplication, and when t …
DWin's user avatar
  • 7,806
1 vote
Accepted

Survival analysis / cox-regression of periodically recurring events

Looks like you have a predictor that varies cyclically. My impression from very limited reading of the botanical literature is that something along the lines of cumsum(degree_days) (where the sums are …
DWin's user avatar
  • 7,806
2 votes

Weibull Survival Model in R

The help page for ?Weibull says: The Weibull distribution with shape parameter a and scale parameter b has density given by f(x) = (a/b) (x/b)^(a-1) exp(- (x/b)^a) And then the help page fo …
DWin's user avatar
  • 7,806

15 30 50 per page