Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
353 views

Cox regression assessing joint relationship between baseline groups? JAMA example

I'm a new R user trying to better understand the analytical framework behind an important JAMA paper (doi:10.1001/jama.291.2.210) and how it can be coded in R. It's objective was to evaluate if, in ...
Titorelli's user avatar
3 votes
1 answer
1k views

Categorising a continuous variable for Cox proportional hazards analysis using "quartiles by event"

A colleague just told me that he categorises continuous data in survival analysis using "quartiles by event". He essentially uses cut-off points that equally distribute events into four ...
Luke's user avatar
  • 55
2 votes
1 answer
304 views

Cox proportional hazards with left-censored time-dependent covariates

I'm doing statistical analysis on a cancer study. My specific dataset contains id, various co-variates such as age, sex, metastatic burden, etc. and time to event data for overall survival I want to ...
Luke's user avatar
  • 55
1 vote
1 answer
287 views

Can I estimate the COX regression using OLS

I am wondering if I can estimate the Cox regression $h(t,z)= h_0(t)exp(\beta_1 z_1+\dots+\beta_x z_x)$ model using OLS. The idea would be to rewrite the model with regards to the structure of a simple ...
Jsimp's user avatar
  • 61
0 votes
2 answers
542 views

Deriving survival from hazard function

EDIT: It was a simple typo (+ instead of *), but the values still aren't quite right. Leaving the original in case others find it useful I'm fairly new to working with survival functions so this ...
user1777900's user avatar
1 vote
2 answers
422 views

Survival Analysis for predicting next car's maintenance

I am working on a predictive maintenance project. To simplify I want to predict for a car the next time it will have to change for example the oil filter (and then extend to other parts like wipers). ...
Doxcos44's user avatar
0 votes
2 answers
680 views

Calculating hazard using Cox regression

I'm using the Cox regression model in lifelines (python) to try and predict what the probability of a patient surviving X days is given several variables. Do to some very silly restrictions on the ...
user1777900's user avatar
1 vote
1 answer
31 views

Should I use cox regression for this?

Should I be using cox regression for this? I am analyzing the performance of a tennis player. I want to understand how long on average his performance starts to drop during a match. I indicate an ...
luchins's user avatar
  • 11
0 votes
0 answers
191 views

weird outlier in a cox regression model

I'm using normal deviate residual to identify outliers, and I'm confused that my plot seems to suggest that there are unreasonably a lot of outliers...? Has anyone seen something like this? ...
llbia's user avatar
  • 381
3 votes
2 answers
186 views

Should I use Cox model?

In a study of crowdfunding, I am investigating the relationship between the reputation of a person seeking funding for a project (a continuous variable) and the proportion of funding target received (...
SanMelkote's user avatar
1 vote
1 answer
80 views

Explanatory variables that are monotonic functions of time in Cox proportional hazards models?

I am fitting a Cox PH model where the main explanatory variable is a monotonic function of time. Is this violating any assumptions of the Cox model?
Magnus's user avatar
  • 23
2 votes
1 answer
2k views

Cox PH - R 'rms' package - Concordance (Train, CV & Test)

Please could someone verify if my methodology for calculating these three versions of concordance are correct when using the rms package? I have really struggled to ...
Liam Morgan's user avatar
2 votes
0 answers
110 views

Check if PH or AFT model should be fit

It is unclear to me when it is appropriate to fit an accelerated failure time (AFT) model rather than a proportional hazard (PH) model. I've tried googling and it appears as though PH models are ...
Emma Jean's user avatar
  • 635
5 votes
0 answers
4k views

How to better understand when to use Weibull AFT versus Cox Model for Failure Data

I am struggling to understand when I should consider using a Cox regression model versus using a Weibull AFT model to predict the end of life of mechanical components. I have tried to apply the Cox ...
Py_Mel's user avatar
  • 95
1 vote
1 answer
575 views

What does the output of a Cox Proportional Hazard model mean?

For a linear regression plugging different X values to the fitted model gives us the different predicted Y values, for a logistic regression we get the different log odds: what does the output of the ...
Metrician's user avatar
  • 279
0 votes
1 answer
775 views

Transformations in a Cox Model

I am standardizing all my continuous covariates (and log transforming them to minimize undue influence). However I would like to express the change in the log hazard per 10 year change for my ...
mindhabits's user avatar
1 vote
0 answers
47 views

How can I determine whether my Cox regression analysis have enough power to conclude an outcome

I have 159 tumor patients, of which I know several parameters: age, sex, stage, ... and x. X is a continuous covariate corresponding to the percentage of tumor cells currently dividing (biological ...
cmirian's user avatar
  • 259
2 votes
0 answers
83 views

Results of a survival analysis change when converting the data to counting process format

Consider the following simple example: ...
Tamas Ferenci's user avatar
1 vote
1 answer
771 views

Interaction not significant in Cox regression model?

I ran a cox model with an interaction between two categorical variables (sex and treatment group) included like: ...
llbia's user avatar
  • 381
1 vote
1 answer
1k views

Baseline hazard function is the hazard function obtained when all covariates are set to zero

I am trying to learn Cox proportional hazard model but I have hit a wall with the basehaz function. Lets suppose for example I have some data that I want to use ...
John.Doh's user avatar
2 votes
2 answers
5k views

How to choose the best combination of covariates in Cox multiple regression?

I am performing a multivariate Cox regression analysis, and would like to find what combination of those covariates best predict my outcome. Say I have a list of candidate genes whose expressions ...
Douglas's user avatar
  • 21
0 votes
2 answers
915 views

Cox regression different results with different combinations of variables

I need help understanding how to use cox hazzard model to calculate risk of death in data from a cohort study. I have a set of data on physical activity and I want to do a cox regression on ...
Per Stian Wølneberg's user avatar
0 votes
0 answers
45 views

Estimating death based on repeating sequence?

Currently I'm working on a project, and I reading up on Survival Regression with Cox’s proportional hazard model, which looks like it will work to answer the questions I want to ask. My issue is ...
Veggiet's user avatar
  • 101
1 vote
0 answers
164 views

Survival analysis: how to account for immortal time with time-dependent exposure

I am working on a survival analysis to look at time to preterm birth (birth before 37 weeks). I have a time-dependent exposure that can occur anytime at or after 28 weeks, defined using a heaviside ...
af1234's user avatar
  • 75
2 votes
2 answers
3k views

Continuous vs Categorical covariate of interest in Cox Regression

I will use aliases throughout to explain my results in brief and a few questions that have propped up in the process. Suppose I'm interested in the association of baseline measurement of blood ...
mindhabits's user avatar
0 votes
2 answers
2k views

SPSS cox proportional hazard model adjusting for age

I'm using SPSS to run cox proportional hazard model. I've five different groups and I need unadjusted and adjusted (for age) HR for all of them separately. My first group is a reference group. I've ...
Tabbi's user avatar
  • 15
0 votes
1 answer
731 views

When doing Cox regression, what should we take as event duration for censored data, and how should we divide the data into training and testing sets?

I am starting out with survival analysis, and am confused about some things specifically in Cox regression. I have not found a tutorial that explains these things clearly, that's why I'm posting this ...
Kristada673's user avatar
5 votes
1 answer
842 views

Piecewise survival analysis?

I am trying to analyze time-to-event data (time to completion of a task). Looking at the KM curves, there is a distinct behavioral change around 12 months. This makes sense, because at 12 months there ...
Brandon's user avatar
  • 356
1 vote
1 answer
2k views

Different length in variable and residuals from the model

After having posted another question on the subject, I'm trying this time on my real data (unfortunately not openly publishable) to find the the best variable transformation that yields linearity in ...
ecjb's user avatar
  • 593
4 votes
1 answer
449 views

Why does regression model theory not use measure-theoretic sigma-field type notation but counting process models do?

I have been studying counting process theory for time to recurrent event processes and am interested in the explicit use of the conditioning set in the model notation; $$E[dN(t)|\mathcal{F}_{t^{-}}]=\...
dandar's user avatar
  • 728
1 vote
1 answer
106 views

Cox Regression and Linkage Disequilibrium

I'm trying to figure out the best way to account for linkage disequilibrium in a cox regression, and would really appreciate your advice. I'm testing the effect of a particular allele on overall ...
krc3004's user avatar
  • 41
3 votes
2 answers
3k views

Why and how does adding an interaction term affects the confidence interval of a main effect?

I was wondering why, in a regression model including an interaction term, the confidence interval of one of the main effects becomes wider. Consider this Cox regression, where the variable IR_BMI27 ...
torwart's user avatar
  • 305
4 votes
2 answers
5k views

Intuitive explanation of censored data in a Cox model

I use Cox regression (proportional hazards) to model survival for a cohort of patients. Patients are censored (alive (0), dead (1)). I was wondering how Cox regression uses censored data intuitively. ...
J. Doe's user avatar
  • 51
0 votes
1 answer
73 views

Cox model with a predictor variable within only one stratum

I'm investigating survival in a cancer patients cohort. The Cox model I'm using is stratified by stage and adjusted for several variables. I would like to add one variable RT (Radiotherapy) which is ...
ebay's user avatar
  • 5
2 votes
2 answers
547 views

How can I visualize fitting survival data to a proportional hazards model with a continuous variable?

I have (censored) survival data that I am fitting with a proportional hazards model with a continuous covariate, X (for my purposes, X ranges from 0 to 1). After fitting the model, I get a ...
user3593717's user avatar
2 votes
1 answer
4k views

Cox Proportional and Pooled logistic regression in a observational cohort study - laymans terms

So my brain is just not understanding the difference between the two above. I am currently writing a literature review and have to explain the significance of what was found in the research. The ...
Lau Ra's user avatar
  • 29
1 vote
0 answers
66 views

Cox Regression Model for toxicity

I'm trying to evaluate the toxicity of a certain treatment over time. I have 2 independent groups and I apply a treatment to one, and nothing to the second one. I thought about using logistic ...
Ana Silva's user avatar
3 votes
1 answer
4k views

Converting a Continuous variable to categorical for Cox regression

In a Cox regression model where our variable of interest is continuous (e.g., a lab measurement); If we want to obtain something other than a unit risk ratio for that variable (e.g., the hazard ratio ...
Ozan Dikilitas's user avatar
0 votes
1 answer
2k views

How to interpret Coxnet in R?

I am using Coxnet package for a dataset of 457 observations and 180 variables and also for another dataset of 457 observations and 25000 variables. ...
Jesvin Joy's user avatar
0 votes
0 answers
32 views

Can I incorporate differencing into a (Cox) survival model?

I am predicting college student dropout with a Cox model. I believe that a declining grade point average (GPA) is predictive of dropout, and I want to incorporate this into my model. I'm looking for ...
Eli's user avatar
  • 2,692
2 votes
0 answers
214 views

independence assumption on events in Cox model

In the wikipedia article on the Cox model, in the development of the partial likelihood, it is mentioned that the different subjects are treated "as if they were statistically independent." Is this in ...
Hasse1987's user avatar
  • 576
7 votes
1 answer
11k views

How to interpret concordance index in Cox models?

I'm new using the survival package in R. Consider an example provided with the package: ...
jroberayalas's user avatar
4 votes
1 answer
2k views

Cox survival data with time-varying continuous variable and time fixed covariate

I am interested in the paper entitled "Generating survival times to simulate Cox proportional hazards models with time-varying covariates " (Stat Med. 2012 Dec 20;31(29):3946-58.),and want to simulate ...
Z. Zhang's user avatar
  • 183
4 votes
1 answer
39 views

Extracting relative risk from survival parameters

Brief background: statins are drugs that lower cholesterol. Trials comparing statins with placebo show that statins lower mortality (in terms of hazard ratio) by almost 20% (hazard ratio 0.8). There ...
Adam Robinsson's user avatar
2 votes
1 answer
201 views

imputation with penalized (Cox) regression

I'm doing penalized (elastic net) Cox regression. But I also have missing data. Now, as I understand it, the reason we do multiple imputation is that once we do single imputation, our data points are ...
eac2222's user avatar
  • 753
2 votes
1 answer
1k views

What if linearity doesn't hold in a cox model?

I have built a multivariable cox model with coxph(). However, I am unable to run ggcoxfunctional() on some of the variables because of missing data. ...
saifulsafuan's user avatar
3 votes
1 answer
691 views

Cox Proportional-Hazards Regression vs. Regression modeling of competing risk using Fine and Gray

30000 patients all have one diagnosis in common, 3000 of them have been exposed to a potential risk factor before the common diagnosis. 1500 patients develop a malignancy after the common diagnosis. ...
ATM's user avatar
  • 31
2 votes
1 answer
1k views

How does Cox regression estimate time to an event?

In R and Python, Cox regression is specified with duration and event as the dependent variables. However, Cox regression is said ...
Jane Wayne's user avatar
  • 1,400
1 vote
0 answers
854 views

What could be the reasons for why re-scaling variables used in regression helps model performance?

There's already an excellent post on standardizing values used for regression here. In this post, I am using Cox Regression (Cox Proportional Hazard model) with the lifelines Python library. Now, one ...
Jane Wayne's user avatar
  • 1,400
3 votes
0 answers
65 views

Approach to a complex survival analysis

Hello and thanks for reading! I'm a student who has unfortunately 'designed' quite a complicated experiment which I'm struggling to analyse statistically. I do like statistics but my experience is ...
ABG's user avatar
  • 31