BookmarkSubscribeRSS Feed
MarryEdward
Calcite | Level 5

Dear all,

In the following "Proc glm" I am using a panel regression with an interaction term (PIncP*Same4). I want to test for the joint significance of the variable "Same4" with "PIncP*Same4". I used the command "test Same4, PIncP*Same4;" as shown below. It runs but I get no result in the output. I am new to SAS so I am not sure if I am missing something in the proc glm below.

proc glm;

class Off Def OffSeason OffGame Down FieldPos Cold Wind Weather Grass ;

model YardsMinAvgP4 = PIgP Same4 PIncP*Same4 FracPassGameIgP PrevSucc4

  YPRGameIgP YPPGameIgP FracSuccGame Down YTG FieldPos PointDiff DiffSpreadvsActual Cold Wind Weather Grass OffHome / solution ;

  test Same4 , PIncP*Same4;

run;

Thank You!

1 REPLY 1
SteveDenham
Jade | Level 19

The "test" statement in PROC GLM is a method to use some mean square other than the residual mean square as a denominator in an F test, and, so far as I can tell, not a way to do joint testing.  If you really wish to do a joint test, you should look at procedures such as GLIMMIX that allow the use of the EFFECT statement or LSMESTIMATE statement.

Steve Denham

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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