BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
yael
Quartz | Level 8

Hello,

 

I run the following code:

proc reg data=sasuser.sasfile;
model roa1 = ff ff*introduc2 ff*growth2 ff*maturing2 ff*shake2c Lnsalesgro;
run;

 

Where ff, introduc2, growth2, maturing2, shake2c are dummy variables and Lnsalesgro and ROA1 is countinous variables.

I got the following log:

 

323 model roa1 = ff ff*introduc2 ff*growth2 ff*maturing2 ff*shake2c Lnsalesgro
-
22
76
ERROR 22-322: Syntax error, expecting one of the following: a name, ;, -, /, :, _ALL_, _CHARACTER_, _CHAR_, _NUMERIC_, {.

ERROR 76-322: Syntax error, statement will be ignored.

 

What is my mistake?

 

Thanks a lot!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

From the documentation:

"After the keyword MODEL, the dependent (response) variables are specified, followed by an equal sign and the regressor variables."

You can only use variables, not terms; create variables that hold the multiplied values in a precursor data step.

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

From the documentation:

"After the keyword MODEL, the dependent (response) variables are specified, followed by an equal sign and the regressor variables."

You can only use variables, not terms; create variables that hold the multiplied values in a precursor data step.

ballardw
Super User

Please post such error related log content in a code box using the {i} menu icon. The position of the _ in the error message helps diagnose problems but the main forum window reformats some of the text so that the position changes.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2563 views
  • 1 like
  • 3 in conversation