BookmarkSubscribeRSS Feed
BeeBop9
Calcite | Level 5

I want to build a regression model (OLS) with the following:

 

My data set is at the medical provider level (N=10,000 approx).  I have several providers within each US state, sometimes hundreds.

My dependent variables is "hours worked (for various categories of worker) per patient".  This is at the provider level.

My independent variables are:  state (I have 52 states), and the minimum wage in each state (state level variable).

 

I want state to be a fixed effect, since there are many providers in each state.

 

How do I specify this model --PROC GLM?   Or is there another proc that's more appropriate? 

 

Thanks!    

 

 -Dave  

1 REPLY 1
PaigeMiller
Diamond | Level 26

Yes, you can do this in PROC GLM.

 

If you don't specifically designate variable STATE to be random, then it is assumed to be fixed.

 

I want state to be a fixed effect, since there are many providers in each state.

 

As far as I know, this is not a reason for variable STATE to be fixed. (It should be fixed, but not for that reason).

--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1 reply
  • 806 views
  • 0 likes
  • 2 in conversation