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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1252 views
  • 0 likes
  • 3 in conversation