Hi,
I'm using proc mixed to get estimates and the plots for model validity check.
ods graphics on;
ods output lsmeans=estimate
diffs=diff;
proc mixed data = mydata (where=(treatn in (1,2,3))) plots=all;
by estremn estrem atypen atype paramcd param avisitn avisit ;
class treatn;
model aval = treatn base/residual outp=resid;
lsmeans treatn / pdiff=control('1');
lsmeans treatn / pdiff=control('2');
run;
ods output close;
ods graphics off;
Help is needed to create a file in the "Output" folder where all the plots go instead of going to the user area folder
Thanks
Specify a statement like the following to direct the displayed results to an rtf file:
ods rtf file='tmp.rtf';
You might just need to close the Listing destination:
ods listing close;
Related to your question, in SAS 9.4M6 the ODS destination for Word has been added as a preproduction destination. This destination creates Microsoft Word documents (.docx).
"The ODS destination for Word standard format is richer than the intermediate text formats of ODS RTF reports. Although Microsoft Word reads the intermediate text format reports, some SAS reporting elements might get lost in translation because the intermediate formats of the RTF-generated report are not as rich as the standard formats required by the ODS destination for Word."
ods word file="pagexofy.docx"
In ODS, you can control the image location (path) for ODS Graphics output and you can also specify the format of the image. Here's an example:
ods graphics
/ reset
width=5in /* width of the image = 5 inches */
imagename="fitplot"
imagefmt=png /* Format of the image */;
ods listing
gpath="path" /*path of the destination folder of the image */
image_dpi=200 /* Dot per inch resolution */
style=analysis /* ODS Style */;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.