03-14-2018 04:56 AM - edited 03-14-2018 04:59 AM
I am using Proc PRINCOMP. SAS says that "You can use ODS Graphics to display the scree plot, component pattern plot, component pattern profile plot, matrix plot of component scores, and component score plots. These plots are especially valuable tools in exploratory data analysis.". I think that before plotting these plots, SAS should store the data sets somewhere.
I would like to save these data sets but I cannot do. Do you have any idea how to get them out?
In the attachment, I include two plots from the output when specify:
Ods graphics on; Proc princomp data=ind_g1 n=2 plots=all out=scores_ind_corr_g1; Var Vraag_11-Vraag_24; Run; Ods graphics off;
03-14-2018 05:21 AM
To get the datasets behind the scenes out you need to use:
ods output wantdataset=objdataset; proc printcomp...
The objdataset is the one from:
The wantdataset is a name you give it.
That stores the data, graphics objects are on the next page:
To create nice output it should be as simple as redirecting ods:
ods rtf file="temp.rtf"; proc princomp... ods rtf close;
03-15-2018 01:33 PM
For information about how to store any table or graph to a data set, see
For the specific case of graphs, see