Hi All,

I am trying to figure out how to get the position of the knots in a pspline 
used in a cox model.

my.model = coxph(Surv(agein, ageout, status) ~ pspline(x), mydata) # x being 
continuous

How do I find out where the knot of the spline are? I would like to know to 
figure out how many cases are there between each knot.

Best,

Federico

--
Federico C. F. Calboli
Department of Epidemiology and Biostatistics
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to