I'm trying to use the ODS Output dataset ParameterEstimates from the PHREG procedure, and I'm having an issue where it appears that the variable "Parameter" only has a length of 20, so it's truncating any parameter entered into the model with length > 20. This is problematic for me since, amongst other variables, I'm trying to use three interaction term variables named volume_gtv_rt_tech_d1, volume_gtv_rt_tech_d2, and volume_gtv_rt_tech_d3. The ParameterEstimates dataset has the value volume_gtv_rt_tech_d in the Parameter variable for all 3 terms. My ultimate goal is to combine this data with some PROC FREQ data so I can make a table for my statistician that includes the # of failures within each covariate grouping, and this is now rendered nearly impossible with truncating data.
Has anyone else come across this issue? Other than renaming my variables (which is problematic since I do not have complete control over them), is there some other work-around? A random option in PHREG that I'm not aware of? I'm running 9.2, so maybe there's a fix in the latest release, and I could use this as a bargaining chip to get upgraded?
Thanks!!
Use the namelen option.
proc phreg data=your_data namelen=32;
Thanks so much, Reeza! That solves my problem perfectly.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.