Hello,
I am currently working on a project that seeks to understand the relationship between socioeconomic status (one variable) and lung cancer incidence. I have 12 covariates that I control for in my Cox Model. One of them has a non-linear relationship with the probability of lung cancer. I would like to transform it into a spline (non-linear) and then include that in the model.
I do not know how to do those two specific steps: (1) spline transformation of that covariate (2) taking that non-linear term and including it in the Cox Model.
Your help and guidance are much appreciated, Yosra
Related Posts with Non-linear term in a Cox Model
Duration variableGood evening: Below is a sample of data from my data set. The last column, NoBust, is how I want th…
Doubly multivariate repeated measure model/Introducing flexibility in within-group error correlationDear Statalisters, I'm using Stata 15.1. I have a dataset with multiple outcomes and three time pe…
Create factor dummy variables from a long variableHello I have a variable called categories which is weirdly stored in numeric long (it was a string v…
Diaplay full labels for labels with longer length in stata outputDear All Is it possible to display in the STATA output full labels . For example consider my datase…
Standard Deviation /Volatility of Sales Growth Dear all I need to take the standard deviation of every realization of annual sales growth over the…
Subscribe to:
Post Comments (Atom)
0 Response to Non-linear term in a Cox Model
Post a Comment