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

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!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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