- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Does including the following statement help?
output out = predicted p=p lcl =lcl lclm =lclm ucl =ucl uclm =uclm;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Also Fit Statistics should be one word....
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You may also want to use OutputStatistics too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The output are datasets. If you want to see them you need to add Proc print.
- « Previous
-
- 1
- 2
- Next »