I have the following code which runs fine:
ods rtf file='/folders/myfolders/regr1resuls/CLCLr.rtf' style=journal;
ods TRACE ON;
ods output FitStatistics=FitStat ParameterEstimates=param;
proc reg data=boot1 plots=all;
/*plots(only)=FITPLOT(stats=none);*/
model CL=CLr /clb SPEC;
output out=pred predicted=p lcl=lcl lclm=lclm ucl=ucl uclm=uclm residual=r;
proc print data=fitstat;
run;
proc print data=param;
run;
proc print data=pred;
run;
run;
quit;
ods rtf close;
The problem is that the outputted graphs are truncated (i.e., the X axis is not visible). I have attached an output for your perusal.
Can someone tell me why this occurs and how to correct it?
For some reason your page size is messed up. If you set it to Letter, even in the present Word Doc everything shows fine.
Did you try running any options before you ran the code you presented?
If I run a simlar set of code in SAS UE I don't have this issue.
It appears that the current settings for the size of the ODS graph area exceeds the area left within your very small (6 by 2.25 inches) area between margins and header/fooder.
Try
ods graphics/ height=2in;
and see if that helps any.
That resolved the problem.
Thanks
For some reason your page size is messed up. If you set it to Letter, even in the present Word Doc everything shows fine.
Did you try running any options before you ran the code you presented?
If I run a simlar set of code in SAS UE I don't have this issue.
Where in the present code would I set page size and what is the correct syntax?
The default is letter so I don't know why yours is different unless you've already changed it?
I would make sure my pagesize was letter and orientation was portrait.
If you haven't already, restarting SAS may reset the defaults.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.