Hi!
I am trying to do ANOVA analysis with Duncan grouping. However, the results window is showing only the colour code instead of a letter code. How can I convert results into a letter code? Thanks in advance!
As a minimum you should share the code you are using, or the code generate by choices.
There are at least half a dozen procs that do ANOVA in some form and display choices vary by Procedure.
Also you may need to share some example data to use for testing.
Is the table on the left what you actually want? I'm not quite sure I understand exactly what you expect for result.
Use the LINESTABLE option. To get datasets, request
ODS OUTPUT MCLines=MCLines MCLinesInfo=MCLinesInfo MCLinesRange=MCLinesRange;
How to add linetable option?
I tried this code as follows
title1 'AUDPC values of pepper plants';
data Pepper;
input Sample $ AUDPC @@;
datalines;
MB1 04.19 MB1 02.09
MB2 10.67 MB2 10.57
MB3 07.75 MB3 07.94
MB4 14.71 MB4 12.00
MB5 15.14 MB5 12.43
MB6 16.91 MB6 12.55
MB7 18.00 MB7 18.00
MB8 17.56 MB8 16.91
MB9 12.71 MB9 15.52
MB10 18.00 MB10 18.13
;
proc anova data=Pepper;
class Sample;
model AUDPC = Sample;
means Sample / duncan waller;
ODS OUTPUT MCLines=MCLines MCLinesInfo=MCLinesInfo MCLinesRange=MCLinesRange;
run;
It did not work
hello! Did you convert your results into letter?
I would also like to have the code to convert results in to letter
To get the table instead of the graph, use
ODS GRAPHICS OFF;
as explained in this article: Introducing the new SAS/STAT lines plot - Graphically Speaking
For an overview of the LINESPLOT, its advantages, and its limitations, see Graphs for multiple comparisons of means: The lines plot - The DO Loop (sas.com)
from code remove ODS GRAPHICS ON; and ODS GRAPHICS OFF;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.