Help using Base SAS procedures

PHREG - ODS Output dataset ParameterEstimates - Parameter only has length of 20?

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

PHREG - ODS Output dataset ParameterEstimates - Parameter only has length of 20?

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!!


Accepted Solutions
Solution
‎09-04-2013 10:53 AM
Super User
Posts: 19,772

Re: PHREG - ODS Output dataset ParameterEstimates - Parameter only has length of 20?

Use the namelen option.

proc phreg data=your_data namelen=32;

View solution in original post


All Replies
Solution
‎09-04-2013 10:53 AM
Super User
Posts: 19,772

Re: PHREG - ODS Output dataset ParameterEstimates - Parameter only has length of 20?

Use the namelen option.

proc phreg data=your_data namelen=32;

Contributor
Posts: 22

Re: PHREG - ODS Output dataset ParameterEstimates - Parameter only has length of 20?

Thanks so much, Reeza!  That solves my problem perfectly.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 441 views
  • 0 likes
  • 2 in conversation