BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jacksonan123
Lapis Lazuli | Level 10

I am running the following code as previously discussed:

 

ods rtf file='/folders/myfolders/peter/sample1.rtf' style=journal;

ods trace on;

proc reg data=boot plots=all;

model Clu=GFru;

run;

quit;

ods rtf close;

 

It ran okay and I got all of the plots and the analysis of variance results.  My question is how does one get the observed and predicted values (slope, intercept etc) output as well as their 90% confidence intervals in a table?

 

djrisks
Barite | Level 11

Does including the following statement help?

 

output out = predicted p=p lcl =lcl lclm =lclm ucl =ucl uclm =uclm;

jacksonan123
Lapis Lazuli | Level 10

I put it in but got no output although it works with base SAS but I guess it may not be the proper syntax for University SAS.  I have trace on for my ODS and there is an output  called FitStatistics which I have tried to add to the code as:

proc reg data =boot1 plots=all Fit Statistics;

 

However I get a syntax error.  Can someone tell me how to correct the statement to get the output of Fit Statistics and the plots?

djrisks
Barite | Level 11

Oh okay, maybe the syntax is different for SAS University then.


Anyway when you use ODS trace to find table names, to output them you need to add ods output too. i.e.:

 

ods output Fit Statistics = Fit Statistics;

 

Put the above statement just before your proc reg.

djrisks
Barite | Level 11

Also Fit Statistics should be one word....

djrisks
Barite | Level 11

You may also want to use OutputStatistics too.

jacksonan123
Lapis Lazuli | Level 10

This is my current code for which I get no errors but I also get no stat output in my Table CLuGfru.  The output is only the ANOVA and the graphs as before.

 

ods rtf file='/...../CLUGFRu.rtf' style=journal;

ods trace on;

ods output FitStatistics=FitStatistics  OutputStatistics=OutputStatistics;

proc reg data=boot1 plots=all;

model CLu=GFru;

run;

quit;

ods rtf close;

 

I have attached my file boot1 so that you can run the data.

Reeza
Super User

The output are datasets. If you want to see them you need to add Proc print. 

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 22 replies
  • 4470 views
  • 3 likes
  • 5 in conversation