Hi,
I am estimating a cohort model for participation rates, with the sample running from 1976 to 2007. To ensure that the model does not try to predict PR for age 15&under and 71+, the following lines are included:
for !c=1906 to 1937 'Stop programme from trying to predict pr for age 71 and over
!y=!c+71
syspred_{%s}.exclude !y !lastyear {%s}pr_!c
next
for !c=1963 to 2085 'Stop programme from trying to predict pr for age 15 and under
!y=!c+14
syspred_{%s}.exclude 1976 !y {%s}pr_!c
next
So, for example, for someone who is born in 1963, I want to exclude the years 1976 to 1977, and for someone who is born in 1964, I want to exclude 1976-1978, etc. However, I get an error msg saying that there is missing data in 1963.
The code was originally written for eviews 4, and instead of ".exclude", it said "syspred_{%s}.add @exclude 1976 !y {%s}pr_!c". Now I am using eviews 6.
So, is my problem a compatibility issue? What is the right "translation" for eviews 6? Does anyone know another way to code what I am trying to do?
Thank you very much,
Karin
exclude time periods in model
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Who is online
Users browsing this forum: No registered users and 2 guests
