BookmarkSubscribeRSS Feed
Hello_there
Lapis Lazuli | Level 10

Hello,

 

I have a data set that contains 10 players and their games, as well as if they played home or away (home_away) and their amount of assists. The data set is about 600 obs.

 

There is one player in this data set that has a huge difference between the amount of assists he gets at home compared to away. I want to know if there is statistical significance with this player compared to the other 9 players home and away stats for this category of assists.

 

What would be the best model? Would it be an Mixed Model w/ Repeated Measures?

 

The data set variables are : Player, home_away (home or away), assists (# of assists)

 

To set it up would i just use a proc mixed?

 

Proc mixed data=dsn;

class home_away player;

model assists= home_away/ solution;

repeated home_away;

random player;

run;

 

Am i headed in the right direction?

1 REPLY 1
SteveDenham
Jade | Level 19

I think you are, but you should be aware that the variable "assists" probably isn't normally distributed, nor are the residuals of the model you are trying to fit. You will likely need a generalized linear model, and maybe the repeated nature can be modeled as a random repeated effect in PROC GLIMMIX.  Try this:

 

Proc glimmix data=dsn;
class home_away player;
model assists= home_away/ solution dist=poisson;
random Intercept/subject=player;
random home_away/residual subject=player;
run;

You possibly could use PROC GEE, which might give more interpretable results. I'll call on @StatDave who knows a lot more about generalized linear model analysis than I do. Here would be my attempt:

 

proc gee data = dsn;
   class home_away player;
   model assists= home_away / dist=poisson link=log ;
   repeated subject = player /  type=exch covb corrw;
run;

SteveDenham

 

 

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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