BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
NaNaN
Calcite | Level 5
I am running a simple transreg as shown in below. How do I get the values of all knots?
ods graphics on;
proc transreg data = edaniat.development_sample plots=all;
  model identity(r_util_v2) = mspline(CVPRAGG905/nknots=10);
  output tip=t;
run;
ods graphics off;

Thanks!

-Shelly

1 ACCEPTED SOLUTION

Accepted Solutions
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

In general, when you want to capture output in a SAS dataset for further processing, check ODS Table Names for the procedure:

 

https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_transreg_se...

 

If what you want is listed there (which DETAILS is), you can use ODS OUTPUT; see

 

ODS OUTPUT: Store any statistic created by any SAS procedure

 

View solution in original post

4 REPLIES 4
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

Add the DETAIL option to the MODEL statement.

NaNaN
Calcite | Level 5

Thanks for helping me, @sld. After I added detail option, the knots are displayed. However, I need to save the knots in a dataset for further processing.Do you know how to do it?

sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

In general, when you want to capture output in a SAS dataset for further processing, check ODS Table Names for the procedure:

 

https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_transreg_se...

 

If what you want is listed there (which DETAILS is), you can use ODS OUTPUT; see

 

ODS OUTPUT: Store any statistic created by any SAS procedure

 

NaNaN
Calcite | Level 5
Thank you very much! I got what I need!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1855 views
  • 0 likes
  • 2 in conversation