save data from linefit

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

maxchen
Posts: 191
Joined: Fri Oct 10, 2008 4:03 pm

save data from linefit

Postby maxchen » Wed Jul 28, 2010 5:13 pm

In Eviews 5

Code: Select all

%wf = @evpath + "\Example Files\data\demo" wfopen %wf group g m1 gdp g.linefit(yl,xb=-0.5,s=s1)
then the fitted series is saved in series s1.

In Eviews 7

Code: Select all

%wf = @evpath + "\Example Files\Sample Programs\stats\demo" wfopen %wf group g m1 gdp g.scat linefit(yl,xb=-0.5) 'EViews 7 g.distdata(dtype=linefit) mm
It seems "distdata" do not work for linefit. The "Object Ref" p245 do not mention linefit. Is it another way out? ( besides fit an equation and compute the fitted values)

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

Re: save data from linefit

Postby EViews Gareth » Wed Jul 28, 2010 5:39 pm

Correct, the only way to do it is by estimating an equation.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest