Please assist, this is the code I used for my analysis however I cant see the display of the cluster graph
FILENAME REFFILE '/folders/myfolders/lesson3/Electronic.xlsx';
PROC IMPORT DATAFILE=REFFILE
DBMS=XLSX
OUT=WORK.Electronic;
GETNAMES=YES;
RUN;
ods graphics on
Proc Cluster Data=Electronic Print=7 Simple Method=Centroid rmsstd rsquare outtree=Electronic_Dataset plots(maxpoints=5000);
Id Order_ID;
Var Sales Profit;
Run;
ods graphics off ;
The warning its giving me is as follows
The WARNING message tells you the solution. Modify the ODS GRAPHICS statement to read:
ods graphics on / DISCRETEMAX=1400;
then run the procedure again.
The WARNING message tells you the solution. Modify the ODS GRAPHICS statement to read:
ods graphics on / DISCRETEMAX=1400;
then run the procedure again.
That is a data issue. It means that some observations are the same distance from two or more cluster centers. This situation can occur when you have discrete values in your data. (For example, if salaries and profits are rounded to the nearest $1000.) It indicates that an observation is equally likely to belong to more than one cluster.
There is nothing you can do about this warning unless you change your data to use more precision (for example, measure salaries and profits to the nearest cent.)
Thanks a bunch
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.