Hi! I'm using the FOR statement in my program, and got this error message:
For statement unterminated in "FOR !Z=1 TO 2"
Just to give some background, this is the relevant part of the code, where I'm defining two different samples to run the regressions:
sample muestra_est1 2001Q1 2020Q4
sample muestra_est2 2001Q1 2014Q4
for !z=1 to 2 [NOTE: THIS IS WHERE I GET THE ERROR MESSAGE AND THE PROGRAM STOPS]
smpl muestra_est{!z}
Any suggestions?
Many thanks for your time and kindness!
Ricardo
Problem with FOR statement
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Problem with FOR statement
Do you have a matching statement?
Code: Select all
NEXT
-
- Posts: 2
- Joined: Mon Aug 30, 2021 12:50 am
Re: Problem with FOR statement
Hi all, i have a similar problem
I have two variables, a continuous variable, and ages.
I want to compute descriptive statistics for a variety of custom age ranges that are not currently programmed.
I am trying to use
[series a =@recode(AGE<44,1,na)]
And then repeat for the age ranges, then use this as a specification when computing "stats by classification" but it does not work. Can anyone assist here?
I have two variables, a continuous variable, and ages.
I want to compute descriptive statistics for a variety of custom age ranges that are not currently programmed.
I am trying to use
[series a =@recode(AGE<44,1,na)]
And then repeat for the age ranges, then use this as a specification when computing "stats by classification" but it does not work. Can anyone assist here?
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Problem with FOR statement
Hello,
I'm afraid we're going to need more information. The single code line you've shared would seem fine for creating a 1/na dummy series based on the contents of the AGES series. What other code isn't working?
I'm afraid we're going to need more information. The single code line you've shared would seem fine for creating a 1/na dummy series based on the contents of the AGES series. What other code isn't working?
Who is online
Users browsing this forum: No registered users and 48 guests