Syntax Error I Cannot figure out

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Econometrics64
Posts: 4
Joined: Mon Nov 18, 2013 11:03 am

Syntax Error I Cannot figure out

Postby Econometrics64 » Mon Nov 18, 2013 11:07 am

Hey, sorry if i am posting this in the wrong spot but i cannot for the life of me figure out why i am getting syntax error when running a simple regression.

in the command line im running
C log(salary) LS RGP RPPG REV DUMMY

Any help would be greatly appreciated!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Syntax Error I Cannot figure out

Postby EViews Gareth » Mon Nov 18, 2013 11:24 am

Are you using the LS command?

Econometrics64
Posts: 4
Joined: Mon Nov 18, 2013 11:03 am

Re: Syntax Error I Cannot figure out

Postby Econometrics64 » Mon Nov 18, 2013 11:45 am

yes i am

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Syntax Error I Cannot figure out

Postby EViews Gareth » Mon Nov 18, 2013 12:06 pm

So what is the full command you are typing?

Econometrics64
Posts: 4
Joined: Mon Nov 18, 2013 11:03 am

Re: Syntax Error I Cannot figure out

Postby Econometrics64 » Mon Nov 18, 2013 12:34 pm

c log(salary) ls rpg ppg rev dummy

need to get the coefficients for the explanatory variables

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Syntax Error I Cannot figure out

Postby EViews Gareth » Mon Nov 18, 2013 12:52 pm

If you're using the LS command, the LS part should come first. See the LS entry in the Command Reference for more details.

Econometrics64
Posts: 4
Joined: Mon Nov 18, 2013 11:03 am

Re: Syntax Error I Cannot figure out

Postby Econometrics64 » Mon Nov 18, 2013 12:56 pm

umm... yeah i'm an idiot i had those switched the whole time guess i was up too late writing a paper. Sorry for wasting your time but i really do appreciate the help!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests