BookmarkSubscribeRSS Feed
RebeccaFaye
Calcite | Level 5

Hello, 

I want to test for each age category if there is a significant difference by year, and I'm forgetting what statistically test I would use. 

 

YearAge_1Age_2Age_3Age_4Age_5Age_6Age_7
20193854415821330886536134
20203850817651522824531153
202134495195518431122711209

 

Thank you

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Significant difference of what? The means? For AGE_1, you want to compare 38 to 38 to 34? Are these three numbers the means?

 

I'm afraid you can't do any statistical testing unless you have the raw data and multiple data points for each AGE/Year combination — or — you have the standard deviations and number of data points in each cell.

--
Paige Miller
Ksharp
Super User
/*
You could try TREND Analysis by PROC FREQ,
Some dummy code like this,Or check the Doc of PROC FREQ.
*/
/*Code not tested*/
proc transpose data=have out=want;
by year;
var age_:;
run;
proc freq data=want;
table year*_name_/trend measure ci ;
weight col1;
run;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 894 views
  • 0 likes
  • 3 in conversation