BookmarkSubscribeRSS Feed
Anastasia
Calcite | Level 5
Hi,
I have a panel data sample and I analyzed an additive relationship between the independent variables using the following statement:

proc panel data=panel;
model A =B C /FIXONETIME ;
id name year;
run;

Now, I would like to analyze a polynomial relationship between the explanatory variables using the following model: A = B + B*C.

When I try to do this using PROC PANEL, there is a need for a CLASS variable, but the consideration of B and C in the CLASS statement does not produce proper results.

What statement should I use?

Thank you in advance.
1 REPLY 1
SPR
Quartz | Level 8 SPR
Quartz | Level 8
Hello Anastasia,

I did not use proc PANEL but I looked into documentation and found the following line:
"The response variable on the left side of the equal sign is regressed on the independent variables listed after the equal sign." It relates to MODEL statement of the procedure. It means that it is necessary to create a variable, say bc=B*C in your Panel dataset and then use MODEL A = B BC /FIXONETIME;

SIncerely,
SPR

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 917 views
  • 0 likes
  • 2 in conversation