BookmarkSubscribeRSS Feed
louis_usa
Fluorite | Level 6

I know that proc factor has ROUND and FLAG options to control the printouts. But I don't like the results because it simply multiplies all the values by the value of FLAG and it affects only Factor Pattern tables. What if I need to round the all the results to 4 decimals, and how can I do this? For example, here is my sample code:

 

proc factor rotate=varimax data=sashelp.citiwk; /*round FLAG=100;*/
     var FCPOIL FF142B HFBI20 MF3505;
run;

 

Abbreviated output:

The FACTOR Procedure

Initial Factor Method: Principal Components

Prior Communality Estimates: ONE

Eigenvalues of the Correlation Matrix: Total = 4 Average = 1

Eigenvalue Difference Proportion Cumulative 1 2 3 4

2.004760790.673938870.50120.5012
1.330821920.796898710.33270.8339
0.533923210.403429130.13350.9674
0.13049408 0.03261.0000

 

...

Thank you in advance!

2 REPLIES 2
art297
Opal | Level 21

Requires some work to discover what to change, but you can always modify the templates that the proc uses. @Cynthia_sas published a nice paper that describes how to go about doing just that (see: https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwiz8Yur4JfTA... )

 

HTH,

Art, CEO, AnalystFinder.com

 

louis_usa
Fluorite | Level 6
Thank you for the link. I'll study it since I'm not very familiar with the subject.

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
  • 2 replies
  • 843 views
  • 0 likes
  • 2 in conversation