BookmarkSubscribeRSS Feed
MNewman
Calcite | Level 5

Hello,

I have a repeated measures ecological data set for which I need to examine individual species-habitat responses based on site type.

There are three site groupings (i.e., recent, old and control) and each site group has five sample sites (i.e., site 1-5, 6-10, and 11-15).

The data were collected at the same sites over two years (i.e.,2012 and 2013), twice per year (i.e., spring and summer).

In total I have four species that I need to analyze for the spring and summer data separately.

The dataset also includes 5 habitat variables collected for each site (i.e., ba, std, dwd cht, and snd).

I've been instructed to used stepwise regression to complete the analysis for the spring and summer data separately.

I ran a t-test and noticed there are significant year effects in the species data (i.e., spring 2012 vs 2013, and summer 2012 vs. 2013).

My question is, how do I perform a stepwise regression on the grouped spring 2012/2013 data taking into consideration year effects?

Thank you for your assistance - Mark

4 REPLIES 4
PaigeMiller
Diamond | Level 26

PROC REG will do a stepwise regression

It's not clear to me that stepwise is appropriate here, as you seem to have described a nicely designed experiment, where the independent variables should be orthogonal to one another. If that is true, you really do have orthogonal independent variables, then stepwise is meaningless waste of time. If I were you, I would fit the model using either PROC GLM or PROC GLIMMIX and ignore the suggestion to do a stepwise regression.

--
Paige Miller
MNewman
Calcite | Level 5

Hi Paige.  Thank you for the helpful advice.

I'm new to SAS and not familiar with PROC GLIMMIX.  Could you please help me with the syntax?

Much appreciated - cheers Mark

PaigeMiller
Diamond | Level 26

I'm new to SAS and not familiar with PROC GLIMMIX.  Could you please help me with the syntax?

There's a lot of details about your design that you haven't explained clearly, you haven't discussed your response variables, and in any event, I am not an expert on repeated measures designs in this context.

We need a much clearer explanation of the entire design and the response(s).

--
Paige Miller
Reeza
Super User

That design doesn't lend itself to stepwise regression.

Ignore that component and use the appropriate analysis method for the design.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 4 replies
  • 1398 views
  • 0 likes
  • 3 in conversation