Yu, Changhong
2008-Dec-11 21:44 UTC
[R] How to generate a prediction equation for a stratified survival model that was fitted by cph() in Design package
Dear all, I used cph() function from Frank harrell's Design package to create a survival model, then used functions 'Function' and 'sascode' to generate prediction equation based on the saved survival model. But it failed. I included a stratified variable in the model. If I removed the stratification, they were working well. Does that mean that function 'Function' doesn't accept a stratified model? Any thoughts on this will be appreciated. Thanks. Changhong ================================== P Please consider the environment before printing this e-mail Cleveland Clinic is ranked one of the top hospitals in America by U.S. News & World Report (2008). Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use\...{{dropped:13}}
Frank E Harrell Jr
2008-Dec-11 23:57 UTC
[R] How to generate a prediction equation for a stratified survival model that was fitted by cph() in Design package
Yu, Changhong wrote:> Dear all, > > I used cph() function from Frank harrell's Design package to create a > survival model, then used functions 'Function' and 'sascode' to generate > prediction equation based on the saved survival model. But it failed. I > included a stratified variable in the model. If I removed the > stratification, they were working well. Does that mean that function > 'Function' doesn't accept a stratified model?It is supposed to work for that case. Please send trivial example code with data defined in the code that replicates the problem you are seeing, and I'll debug. Frank> > Any thoughts on this will be appreciated. Thanks. > > > Changhong > > ==================================> > P Please consider the environment before printing this e-mail > > Cleveland Clinic is ranked one of the top hospitals > in America by U.S. News & World Report (2008). > Visit us online at http://www.clevelandclinic.org for > a complete listing of our services, staff and > locations. > > > Confidentiality Note: This message is intended for use\...{{dropped:13}} > > ______________________________________________ > R-help at 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. >-- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University