BookmarkSubscribeRSS Feed
deleted_user
Not applicable
All,
I am trying to perform a regression analysis with spatially repeated data, i.e., multiple samples collected from multiple sites. I have been trying to do this in the proc mixed framework so that I am calculating the appropriate standard errors and probability statistics, but I am unsure if a regression model with a random statement (the site term) is correct? I get different parameter estimates than in the straight regression analysis and this give me pause.

Any thoughts?
4 REPLIES 4
deleted_user
Not applicable
Hi Gillett,

When you use PROC MIXED for hierarchical regression model, the parameters are estimated by using Residual Maximum Likelihood method by default. If I understood your question correctly, you are trying to use Random statement in proc mixed and the output from this model is different from individual regression model which uses OLS method for estimating the parameters. Moreover OLS method assumes errors are independent and hence there is no point in comparing the two different model outputs. For more details, you can refer SAS help & SAS documentation on PROC MIXED. I hope this would be helpful to you.

Regards,
Suresh.
deleted_user
Not applicable
Thanks for the reply. I went back in and was looking at how the estimates are calculated in the mixed vs. fixed linear models and it makes sense, as you noted, that the parameter estimates for the model are different. I was also having a problem convincing myself that the proc mixed framework was appropriate for regression, as all of the examples and literature I've been working with (Littell et al. for mixed and linear models) have strictly dealt with ANOVA/ANCOVA type analyses. I have come around to thinking that using the mixed model is indeed best for dealing with the way these data were collected.
deleted_user
Not applicable
option solution or s gives the regression coefficients in proc mixed.

does anyone has any suggestion can we do mixed effect stepwise regression with proc mixed or any other procedure
Doc_Duke
Rhodochrosite | Level 12
I do it manually for backward elimination. It's old fashioned, but it works.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1597 views
  • 0 likes
  • 2 in conversation