BookmarkSubscribeRSS Feed
EmanuelS
Calcite | Level 5

Hello Community,

I'm trying to perform a partial F-test. My question is: Is a specific group of variables together significant?

As an example: Test for the variables jan-dez (dummy-variables for each month):

y= ß1*did+ß2*treatment+ß3*secyear+ß4*jan+ß5*feb+...+ß15*dez

F-test:

ß4=ß5=...=ß15=0

I can do that in PROC REG with TEST, but in PROC PANEL it does not work.

Hope someone can help me.

Kind regards,

Emanuel

3 REPLIES 3
SteveDenham
Jade | Level 19

Have you tried:

Test: jan=0, feb=0,mar=0,..., dez=0;

It appears that the syntax for PROC PANEL uses the variable names rather than the beta's associated with the variables.

Steve Denham

EmanuelS
Calcite | Level 5

Hi,

I tested that today, but I get an error: "the test ... cannot be implemented due to collinearity problems"

jan is not in the sample!

Emanuel

ets_kps
SAS Employee

This is likely because Jan is not in the model as it was dropped due to the "dummy variable trap."  Make sure your tests refer to parameters that were actually estimated. -Ken

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!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1269 views
  • 0 likes
  • 3 in conversation