Hello!
I am currently trying to display statistical data in a table for a series of ANOVA tests. Per the instructions from our professor, we are being asked to display the column labels at the bottom of the row, such as:
However, it seems like SAS automatically positions the labels to the top of the row. So, my table is displaying as:
How can I format the table so "Variable" and "P-Value" are positioned at the bottom of the row?
Thank you!
You will need to provide a style override that looks like:
Var Dependent FValue ProbF / style=[vjust=bottom];
This is if you want to provide exactly the same style overrides to all the variables.
You can use a separate Var statement for different variables to provide different overrides. The order of the columns would be left to right from the order of the Var statements from top to bottom.
You need to show the code you are currently using to display the table before we can suggest any modifications.
Post code by copying from your editor and pasting into a code box opened with either the </> or "running man" icons at the top of the message box.
Here is the code I am currently using to generate the table, where ANOVAResuts contains variables Dependent FValue ProbF.
TITLE1 "Analysis of Variance Results";
FOOTNOTE1 "Created by Name";
PROC PRINT DATA = ANOVAResults
LABEL
SPLIT = '/'
OBS = 'Variable';
VAR Dependent FValue ProbF;
LABEL Dependent = 'Variable/Name'
FValue = 'F/Statistic'
ProbF = 'P-Value';
RUN;
TITLE;
FOOTNOTE;
You will need to provide a style override that looks like:
Var Dependent FValue ProbF / style=[vjust=bottom];
This is if you want to provide exactly the same style overrides to all the variables.
You can use a separate Var statement for different variables to provide different overrides. The order of the columns would be left to right from the order of the Var statements from top to bottom.
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.