Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Spline after Cox regression

From   Etan Lakam <>
To   statalist <>
Subject   st: Spline after Cox regression
Date   Fri, 5 Jul 2013 16:23:59 -0400

Dear Listers,
I am doing Cox-regression with a continuous exposure ffa and the
outcome hf, I have been trying to model it as  cubic spline.
Here is how I approached it, adjusting for age, sex, and race, however
it is coming up with the message error below, and I cannot obtain the
I do not have a clue about what is happening.
Thank you in advance for your help.

mkspline  rlnffa= lffa, cubic nknots(5)
stcox rlnratio* sex race age
adjust race=0 sex=1 age, by(lnffa) ci replace exp
     Dependent variable: _t     Command: stcox
   Variables left as is: rlnffa1, rlnffa2
  Covariate set to mean: age = 53.900191
Covariates set to value: race = 0, sex = 1
too many values
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index