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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1594 views
  • 0 likes
  • 2 in conversation