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
Rolling growth rate in panel dataHi I have a panel data set with T=30 and N=15 I want to calculate rolling growth rate for 5 years I…
IV weakness testHello I just made a 2SLS estimate with an IV. I would like to test if my instrument is weak or stro…
Looping with conditionI am using Stata 15 for generating my data. I would like to generate my Outcome y (as continuous var…
-elabel- updated on SSCThanks to Kit Baum, an updated version of the elabel commands is now available from the SSC. In Stat…
Estimating a Fixed Effects Regression Using Instrument VariablesHi I am new to Stata and am trying to run a fixed effects regression using an instrumental variable…
Subscribe to:
Post Comments (Atom)
0 Response to Non-linear term in a Cox Model
Post a Comment