DATA Step, Macro, Functions and more

Polynomial relationship in panel data

Reply
N/A
Posts: 1

Polynomial relationship in panel data

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.
Super Contributor
Super Contributor
Posts: 365

Re: Polynomial relationship in panel data

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
Ask a Question
Discussion stats
  • 1 reply
  • 128 views
  • 0 likes
  • 2 in conversation