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-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!

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
  • 2335 views
  • 1 like
  • 3 in conversation