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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 515 views
  • 0 likes
  • 2 in conversation