SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
kchanp01
Calcite | Level 5

Hi,

 

I am analyzing data from a randomized block design study. We have two independent variables, two covariate and one blocking factor (categorical). As I use a block design, I wonder what is a proper way to set up an ANCOVA model (Linear Model function) in SAS EG to take into account the blocking factor? Do I just add one more factor in the classification variable option in Linear Model and turn off (set to "False") the "class effects to use" in the Post Hoc Tests - Least Squares tab?

 

Thank you!

4 REPLIES 4
ChrisHemedinger
Community Manager

I'm not a statistician but I'm told that our Linear Models task doesn't completely support ANCOVA out of the box.  You might be able to use custom code in the task (use the Code Preview and you can add items at certain points) to add the options/statements you need.

 

As far as ANCOVA approach, you might want to ask in the Statistical Procedures board.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!
kchanp01
Calcite | Level 5

Thank you so much! Will post a question in another board.

TomKari
Onyx | Level 15

As an extension to Chris's note, it's really easy to add custom code to EG tasks. Don't hesitate to give it a try, and post questions if you have problems!

 

Tom

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!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1784 views
  • 0 likes
  • 3 in conversation