New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
kcvaldez98
Obsidian | Level 7

Hi SAS users!

I am trying to create a PROC ANOVA for my analysis and keep coming with this error: ERROR: No continuous effects allowed in PROC ANOVA.

 

My code is this: PROC ANOVA DATA=ANOVA;
   CLASS Quartiles;
   MODEL riskfactors_countyestimate = demo_edupctn3 demo_povpctn outcomes_adults_mental_distr;
RUN;

Quartiles is a character variable while the rest of the variables are numeric.

I am not very good at the statistical side of SAS so advice is well-appreciated!

The numeric variables are percentages of populations if that also helps!

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
I think you want a GLM, not PROC ANOVA here.

ANOVA expects the variables on the right hand side of the equal sign to be categorical.

View solution in original post

2 REPLIES 2
Reeza
Super User
I think you want a GLM, not PROC ANOVA here.

ANOVA expects the variables on the right hand side of the equal sign to be categorical.
kcvaldez98
Obsidian | Level 7
That would make so much sense, thank you!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 23376 views
  • 3 likes
  • 2 in conversation