Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

What are the differences between PS-match and adjusted Cox regression?

This is more like an extension of the following question: Propensity Score Matching with Cox Regression I am wondering what are the differences between these: matching patients with PS and running ...
Math Avengers's user avatar
0 votes
0 answers
18 views

How to plot hazard ratio from coxph model with tt() term [closed]

This question is related to another that I posted here: How to visually assess tt() suitability in coxph If we have a time-varying HR that arises from a time-dependent coefficient because we have ...
LucaS's user avatar
  • 857
0 votes
0 answers
31 views

How to visually assess tt() suitability in coxph? [closed]

For this example, I am taking cues from the time-dependent survival vignette. I am interested in understanding how to assess the suitability of a covariate-time interaction using ...
LucaS's user avatar
  • 857
0 votes
1 answer
86 views

Dealing with categorical variables on cox regression

I am trying to fit a Cox regression model to my time-to event data and have a categorical variable with 5 different levels. If I don't leave one of the levels out, then I will have multicollinearity, ...
smgtkn's user avatar
  • 57
1 vote
1 answer
123 views

Discrete-time hazard model vs. conditional logistic regression vs. logistic regression

I was wondering what is the difference between these three models (discrete time cox proportional hazard, conditional logistic regression and logistic regression). I would appreciate it, if you could ...
user413503's user avatar
0 votes
1 answer
209 views

Lifelines-CoxTimeVaryingFitter for Multistate Survival Analysis

I am new to survival analysis and cox regression, and have limited statistical background. I have time-to event data for a multistate survival model and I want to fit a cox model for each transition ...
smgtkn's user avatar
  • 57
5 votes
3 answers
226 views

Cox model - unsure of time unit of analysis

I am running a survival analysis (Cox model) on time to event in cancer patients. The start of followup is end of treatment. Tests for the event (recurrence) are performed every 6 months from cancer ...
user167591's user avatar
14 votes
4 answers
969 views

Cubic splines in Cox model

I have a question about the cubic splines used in the Cox model to test the linearity for the continuous variables. I read that usually the knots chosen are the quantiles. Can you find different ...
user99751's user avatar
  • 209
1 vote
0 answers
44 views

Count data with time-varying covariates

One way to model count data is to simply count up the number of events as the outcome with an offset of observation time if this varies between people. I presume it's also possible to model count data ...
LucaS's user avatar
  • 857
0 votes
0 answers
46 views

Constructing nomogram from approximate model in Regression Modelling Strategies

In section 19.5 in Regression Modelling Strategies by Frank Harrell we make an approximate model using linear regression with ols. Since this is an ols object we have to calculate survival quantities ...
ScapeProf's user avatar
  • 101
0 votes
1 answer
118 views

Reporting of Cox model w/ restr. cubic splines

I'm new in fitting multivariable Cox models w/ restricted cubic splines. This is my code: ...
sjg's user avatar
  • 33
1 vote
1 answer
32 views

Y axis of calibration plot: incidence per X vs percentage at risk

I am considering showing how mis-calibrated a cox proportional hazard model is by plotting the 10th percentiles of risk on the x axis vs the incidence per 100,000. For each bin in x I could plot data ...
brucezepplin's user avatar
5 votes
2 answers
187 views

Why are linear and spline term estimates so different?

I am working on modelling in an epidemiological setting. I want to estimate the association between an exposure (air pollution) and two event outcomes. To achieve that, I am using a Cox PH model with ...
jmarkov's user avatar
  • 794
1 vote
2 answers
62 views

Interpretation dummy variables Cox PH model

I'm curious about interpreting the coefficients of dummy variables within a Cox Proportional Hazards (PH) model. Consider a scenario where I have a sample comprising both male and female patients, and ...
John's user avatar
  • 363
1 vote
1 answer
65 views

Cox Regression: handling a time interval of drug administration when only given once

I would like to investigate the effect of a drug on survival with Cox regression. The drug can be administered either once or twice. In the univariate Cox regression, I see that a shorter time ...
CoxRegressionNewbie2023's user avatar
1 vote
1 answer
1k views

violation of cox proportional hazard assumption

I'm using cox regression to analyse my data. The explanatory variable is a congenital disease (X) and the outcome is an another disease (Y), which is a comorbidity of the congenital disease. I'm ...
Devi Sita's user avatar
  • 333
1 vote
1 answer
315 views

In SAS what is the difference of including treatment variable in model and using the strata statement for treatment variable?

Im building a Cox Regression in SAS. My code looks like this: ...
Jam.Wil's user avatar
  • 77
1 vote
1 answer
28 views

Cox-model with exploratory variable measured after start study

I'm working with an unusual dataset, where some of the covariates/characteristics are measured after the start of the study (though without a timestamp!). Basically, it's a dataset about an auction. ...
John's user avatar
  • 363
0 votes
1 answer
71 views

Trying to understand utility of Cox vs. logistic regression

I am refreshing myself on the different types of regression models and am getting a little stuck between logistic regression and Cox regression/survival analysis. Here's an example: Let's say you are ...
Krysia24's user avatar
0 votes
0 answers
25 views

Survival Analysis where part of population never experiences event [duplicate]

We aim to examine the time it takes for a certain event to happen between two different groups of people in our sample. We are thinking of using survival analysis methods for this purpose. The thing I ...
John's user avatar
  • 363
1 vote
1 answer
299 views

Cox Regression model with time-dependent covariates - violated assumption of proportional hazards (PH)

I am currently performing some Cox regression models. The image attached shows a Schönfeld residual based on one of the cox models with a significant p-value which means that the proportional hazards ...
user avatar
2 votes
0 answers
226 views

How to model an interaction in a propensity-score matched dataset

Suppose I am performing a propensity score matched analysis using the MatchIt package in R, following the example reported here: https://kosukeimai.github.io/...
user89547235's user avatar
1 vote
1 answer
519 views

Using multiple genes building gene signature and survival analysis

This is the paper which is kind of I'm trying to implement based on my set of genes which i have narrowed down from WGCNA analysis. Its a both conceptual and R related question[How to do it in R] my ...
PesKchan's user avatar
  • 235
2 votes
1 answer
615 views

Residuals pattern in Cox proportional hazards model

I do a survival regression on some time-to-event data (vehicle breakdowns) with some covariates (essentially the age of the vehicle and some boolean variables for vehicle type). I must admit that I am ...
Requin's user avatar
  • 621
1 vote
1 answer
948 views

Presenting spline terms from a Cox model

In the Survival vignette entitled "Spline terms in a Cox model" https://cran.r-project.org/web/packages/survival/vignettes/splines.pdf on page 3 there is this graph: The plot is showing the ...
user167591's user avatar
1 vote
1 answer
248 views

Interaction effects in a Cox model

In regression models, usually a (descriptive) indicator of an interaction effect can be plotted via a plot with x-axis with the potential interaction variable (e.g., gender) and the outcome variable ...
Sebastian's user avatar
  • 133
0 votes
1 answer
104 views

Representation of a spline regression - it is better to plot y axis in log scale?

I have a quick (perhaps very naive) question here. Suppose I have a Cox Regression model in which I have modeled a spline curve on a Predcitor. I want to plot the results of this regression (i.e., ...
user89547235's user avatar
0 votes
1 answer
79 views

time to first medication switch as time-dependent covariate in Cox model

I need help with setting up my dataset to perform survival analysis with a time-dependent covariate. I read the Therneau et al. paper but I'm still unsure of how to set up the counting process format ...
R. Simian's user avatar
  • 173
1 vote
1 answer
144 views

Difference between family = gaussian() and family = cox.ph(link='identity') in GAM and family = binomial(link="logit")

I wonder how do u decide if family = gaussian() or family = cox.ph(link='identity') or ...
nerd's user avatar
  • 165
2 votes
1 answer
445 views

Latent Class Analysis - Interpretation and integration with survival analysis?

I am approaching to Latent Class Analysis to identify "classes" of patients based on some variables. Question 1: diagnostics of the results. I already gone through the discussion on whether ...
user89547235's user avatar
5 votes
1 answer
2k views

Time to event = 0 in survival analysis?

In survival analysis, is it appropriate to have a time to event value of zero for a subject(s). For example, the subject experiences the event on the same date as their date of entry. Does this cause ...
user167591's user avatar
2 votes
2 answers
2k views

Calculating statistical power for a Cox proportional hazards regression with a continuous predictor variable

I have 322 samples with survival data (71 had events) and wish to calculate the power to detect an association with a linear predictor (no covariates) at $\alpha$=0.05 and hazard ratio=1.561. Been ...
Christopher Wills's user avatar
2 votes
2 answers
124 views

Interpretation of Interaction when the results in one of the two groups is not statistically significant

Here is the question. Suppose we have a drug A, and we have conducted a RCT evaluating the risk of death in patients randomised to receive ...
user89547235's user avatar
2 votes
1 answer
119 views

Is it possible to generate a scatterplot of relative hazard for participants superimposed on Cox regression line?

I have been using the rms package in R to perform Cox regression on time-to-event data. I have used the ...
Nicholas Black's user avatar
0 votes
1 answer
20 views

Coding Survival Time: How to handle if a subject dies before your outcome (heart failure, HF) AND they have a HF event =1? [closed]

I am running a cox-regression model and am struggling with how to define my survival time to event (heart failure) if their time to HF (=1) AFTER they have died? i.e. it is documented they have a case ...
user375814's user avatar
3 votes
1 answer
4k views

Cox model vs. Fine-Gray: hazard ratios & predicted cumulative incidence under competing risks

I am unclear about deriving both hazard ratios and a predicted cumulative incidence curves under competing risks. After reading this interesting article: https://statisticalhorizons.com/for-causal-...
user167591's user avatar
2 votes
1 answer
89 views

When developing models for effect estimation, is it advisable to perform internal validation and calibration using resampling methods? #rms

In predictive modelling, it is useful to perform resampling methods to assess performance e.g. validate() and calibrate() in the rms package in R. Is it useful / advisable to perform such methods when ...
user167591's user avatar
1 vote
1 answer
1k views

Can we compute predicted cumulative incidence after fitting a Cox model?

After fitting a Cox regression, we can compute the predicted survival curve S(t) e.g. in R: survfit(formula, newdata, ...) where formula is a coxph object. With the KM estimate, cumulative incidence ...
user167591's user avatar
1 vote
1 answer
124 views

In the Cox model, how is modelling the hazard equivalent to modelling time to event?

In the Cox model, the dependant variable is often stated as time to event, e.g. https://www.statsdirect.com/help/survival_analysis/cox_regression.htm even though in the regression formula we model the ...
user167591's user avatar
1 vote
1 answer
38 views

How to handle count type features in survival regression?

I want to understand how to model 'count' or 'customer behaviour' type features in survival analysis. For example, assume that Netflix wants to predict time to churn after a customer upgrades to a ...
Dissa's user avatar
  • 23
0 votes
1 answer
38 views

Should the variable of interest always be placed in the numerator when creating predictive ratios?

Background: I do research in medical imaging. In a current study I am analyzing a measured variable from images that may predict prognosis/survival. Studies of potential imaging survival predictors ...
Bent Larsen's user avatar
1 vote
1 answer
198 views

Robust standard errors with splines

I realize that large changes in model results between using robust and non-robust standard errors can suggest a misspecified model. My case refers to using a Cox regression and I have experimented ...
JED HK's user avatar
  • 409
0 votes
1 answer
466 views

Anova with stratified Cox model

I'd like to use anova to investigate which variables are important to my Cox model outcome. I tried using anova from ...
JED HK's user avatar
  • 409
0 votes
0 answers
956 views

Robust standard errors in Cox survival analysis

The final step of running a Cox model I've been working on involves performing log-likelihood ratio tests to check the significance of each predictor to the model. I'd like to do this using ...
JED HK's user avatar
  • 409
0 votes
0 answers
135 views

Overall effect for non-binary categorical variable, Cox

There are many great answers on Cross-Validated explaining that the p-values for cox.zph (or other regression models) in R refer ...
JED HK's user avatar
  • 409
1 vote
1 answer
91 views

How to control for a variable in a (Cox) regression, but not include it in a predictive model?

I have been analysing some survival datasets for lung transplant patients for the past several months. I have found some variables that are statistically significant - such as year of transplant and ...
Sam Kennedy's user avatar
1 vote
0 answers
56 views

Different results for PH for dummy encoding versus not in Cox regression

I've been running a Cox regression with a dummy encoded dataset. For certain reasons, I tried doing the same procedure by using factor in ...
JED HK's user avatar
  • 409
0 votes
1 answer
1k views

Visualization after restricted cubic splines in Cox

I've used pspline to add restricted cubic splines to certain continuous covariates that violated the PH assumption upon first analysis. I identified these covarites ...
JED HK's user avatar
  • 409
0 votes
1 answer
349 views

Cox time-varying coefficient memory allocation issue

I'm trying to add time-varying coefficients using the tt() function with coxph to solve the problem of PH violations in my Cox ...
JED HK's user avatar
  • 409
1 vote
1 answer
383 views

Hazard ratio from Royston-Parmar model (flexsurv::flexsurvspline)

I have a covariate with time-varying coefficient with two categories (lets call it T), which I have modeled using the Royston-Parmar model from flexsurv package as following. ...
lvdp's user avatar
  • 397

1
2 3 4 5