Error "Variable is not defined" in panel ARDL

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

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

Re: Error "Variable is not defined" in panel ARDL

Postby EViews Gareth » Wed Jan 06, 2021 7:44 am

nhunghatinh wrote:
EViews Gareth wrote:
Hi. Thanks for your feedback. You do not understand me because I can not save the work file and post here (this lite version do not allow me) so that it is easier for you to understand. I will stop asking this question. Thanks


We’re not asking for the workfile, we’re just asking you to tell exactly what you are doing. In words.
Follow us on Twitter @IHSEViews

academia1
Posts: 9
Joined: Mon Feb 21, 2022 10:26 pm

Re: Error "Variable is not defined" in panel ARDL

Postby academia1 » Tue Feb 22, 2022 6:06 pm

Hi, I was regressing a set of data in my model in Eviews applying OLS.
My model is: GDP = β1 + β2 FDI + β3 ODA + u
Yet, when I input the above model in Eviews, there was an error message: "GDP is not defined."
Do you know how to fix the above error so that I can run my model in Eviews for results?
Thank you.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Error "Variable is not defined" in panel ARDL

Postby startz » Tue Feb 22, 2022 6:10 pm

Is there a variable named GDP in your workfile? Can you show us exactly what command you entered?

academia1
Posts: 9
Joined: Mon Feb 21, 2022 10:26 pm

Re: Error "Variable is not defined" in panel ARDL

Postby academia1 » Tue Feb 22, 2022 6:43 pm

Yes, I input GDP as a variable in my work file.
The command I used was stated above.
Yet I encountered the above error.
Then I don't know how to fix it.
Please advise.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Error "Variable is not defined" in panel ARDL

Postby startz » Tue Feb 22, 2022 6:46 pm

try

Code: Select all

ls GDP C FDI ODA

academia1
Posts: 9
Joined: Mon Feb 21, 2022 10:26 pm

Re: Error "Variable is not defined" in panel ARDL

Postby academia1 » Tue Feb 22, 2022 7:06 pm

I input the above command.
There was an error message: "LS is not defined."
What should I do if Eviews keeps showing errors?
Thank you.

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

Re: Error "Variable is not defined" in panel ARDL

Postby EViews Gareth » Tue Feb 22, 2022 7:14 pm

You should start by following instructions.

Please tell us exactly what you are doing.
Follow us on Twitter @IHSEViews

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Error "Variable is not defined" in panel ARDL

Postby startz » Tue Feb 22, 2022 7:57 pm

In particular, where did you enter the command? Maybe even post a screen shot of your EViews window including the command and the workfile window.

academia1
Posts: 9
Joined: Mon Feb 21, 2022 10:26 pm

Re: Error "Variable is not defined" in panel ARDL

Postby academia1 » Tue Feb 22, 2022 8:53 pm

I input the above commands in Eviews.
Below are the screenshots.
It keeps showing the message that the variables are not defined.
How to fix these errors?
Attachments
IMG_6516.JPG
IMG_6516.JPG (40.45 KiB) Viewed 6665 times
IMG_6515.JPG
IMG_6515.JPG (48.83 KiB) Viewed 6665 times
IMG_6517.JPG
IMG_6517.JPG (51.42 KiB) Viewed 6665 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Error "Variable is not defined" in panel ARDL

Postby startz » Tue Feb 22, 2022 9:00 pm

Two things:

I believe your data isn't organized correctly. In your Excel file you probably want one column for GDP, another for FDI, etc.

Then in the estimation window just type in the list of variables, no coefficients. Include C to get an intercept.

Consider taking a look at the free EViews Illustrated.

academia1
Posts: 9
Joined: Mon Feb 21, 2022 10:26 pm

Re: Error "Variable is not defined" in panel ARDL

Postby academia1 » Wed Feb 23, 2022 12:36 am

I tried to input another command with another excel file
Below are the screenshots of the command
Yet I saw the same error message that the variable is not defined
What does this error message mean?
I looked at some tutorials yet they did not mention this case.
I am using a Demo version of Eviews. Is it because it is a Demo version so the above error appeared?
Thanks.
Attachments
IMG_6523.JPG
IMG_6523.JPG (55.13 KiB) Viewed 6653 times
IMG_6522.JPG
IMG_6522.JPG (50 KiB) Viewed 6653 times
IMG_6521.JPG
IMG_6521.JPG (54.68 KiB) Viewed 6653 times

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Error "Variable is not defined" in panel ARDL

Postby startz » Wed Feb 23, 2022 7:53 am

Your Excel spreadsheet should have one column for each variable. The first row should be the variable name and the entries below that should be the data. Look at Chapter 2 of EViews Illustrated. Or it might be just as easy to enter the data directly in EViews.

Please don't post photos of your screen. They are too hard to read. Post a screenshot taken on the computer.

academia1
Posts: 9
Joined: Mon Feb 21, 2022 10:26 pm

Re: Error "Variable is not defined" in panel ARDL

Postby academia1 » Fri Feb 25, 2022 2:24 am

I applied another Excel spreadsheet and input a new command on Eviews with only the variables and the constant.
Yet there was an error message:
"Alpha series in specification - GDP
@EXPAND can convert to catagorical dummies."
What does the above error mean and how to fix it?
Below are the screenshots. Thanks.
Attachments
5.png
5.png (15.57 KiB) Viewed 6571 times
4.png
4.png (60.07 KiB) Viewed 6571 times
3.png
3.png (77.8 KiB) Viewed 6571 times

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

Re: Error "Variable is not defined" in panel ARDL

Postby EViews Gareth » Fri Feb 25, 2022 7:24 am

The gdp data contains characters, not numbers
Follow us on Twitter @IHSEViews

academia1
Posts: 9
Joined: Mon Feb 21, 2022 10:26 pm

Re: Error "Variable is not defined" in panel ARDL

Postby academia1 » Fri Feb 25, 2022 6:50 pm

Do you mean the data can contain only characters but not the figures?
Attached are the data that I applied in this Eviews command.
There appeared the error message like above. Pls advise. Thks.
Attachments
1.png
1.png (29.02 KiB) Viewed 6554 times
6.png
6.png (21.1 KiB) Viewed 6554 times
5.png
5.png (59.61 KiB) Viewed 6554 times


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 28 guests