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.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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