Basic Programming

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

AASA
Posts: 30
Joined: Fri Jun 29, 2018 2:37 pm

Basic Programming

Postby AASA » Wed Oct 21, 2020 10:31 am

Below is a sample program provided by EViews. The program could not fetch the “progdemp::hsf.”
What if I have an existing workfile with current HSN1F data from FRED? I would like to use the data from the existing workfile. If I were to create the relationship y = hsn1f, and would like to create a self-standing program file, how do I proceed so that I could use the program with the existing workfile?
' housing analysis
wfcreate(wf=myhouse) m 1968m3 1997m6
fetch progdemo::hsf
smpl 1968m5 1992m12
equation reg1.ls hsf c hsf(-1)
reg1.makeresid hsfres
smpl 1993m1 1997m6
reg1.forecast hsffit
freeze(hsfplot) hsffit.line
save

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 38 guests