looping ~error

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
alex
Posts: 2
Joined: Mon Sep 03, 2012 8:31 am

looping ~error

Unread post by alex »

Hello.
I can not loop this part:

do regend = 1996:4,2001:1
@dfunit gdpq regstart regend
end do

how can Ideal with that. pleae help with that.

Thanks.

-------- coding---------
cal 1947 1 4
all 2001:1

open data usadata.rat
data(format=rats) / m2 gpdi gdpdefl unemprate gdpq

compute regstart =1947:5

do regend = 1996:4,2001:1
@dfunit gdpq regstart regend
end do

error message : SR10. Missing Values And/Or SMPL Options Leave No Usable Data Points
The Error Occurred At Location 0904 of DFUNIT
Line 35 of DFUNIT
moderator
Site Admin
Posts: 269
Joined: Thu Oct 19, 2006 4:33 pm

Re: looping ~error

Unread post by moderator »

Add an explicit

source dfunit.src

before the loop.
alex
Posts: 2
Joined: Mon Sep 03, 2012 8:31 am

Re: looping ~error

Unread post by alex »

Thank you very much..
Post Reply