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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 649 views
  • 0 likes
  • 2 in conversation