Please do you have an example of a specification file that runs through the x12 command? I am trying to run an x12 seasonal adjustment using the "force{}" option, so for example:
cvnsa.x12(sfile=c:\testx12.spc) cvsatot1
but I keep getting an error message saying that the file testx12 cannot be found. The contents of testx12.spc is simply:
force{lambda=1, rho=0.85, type = regress, save = saa}
Any suggestions would be greatly appreciated.
many thanks!
x12 specification file
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13584
- Joined: Tue Sep 16, 2008 5:38 pm
Re: x12 specification file
Try putting it somewhere other than the root of C:
-
HollEviews
- Posts: 15
- Joined: Wed Mar 12, 2014 6:52 am
Re: x12 specification file
Many thanks for the very quick and helpful replies. It turned out that my text editor was adding a "txt" at the end of my file name, so it wasn't found.
One follow-on question to this. I have managed to get Eviews to call the x13 programme and create the series that I'm after, but I can't figure out how to read that series back into Eviews. I have used the following:
cvnsa.x13(spec=satest1)
Where satest1 is a text object:
series{
title = "CVNSA"
start = 1997.1
period = 4
modelspan = (1997.01, 2013.04)
name = "CVNSA"
file = "C:\AppData\ev_temp\EVX13TMP.DAT"
decimals = 1
}
transform{
function = log
}
force{
type = regress
save = saa
}
x11{
save = (d11)
}
A file called evx13tmp.saa is created, and this holds the dataseries that I want. Is there an easy way to read this into Eviews?
Thank you!!
One follow-on question to this. I have managed to get Eviews to call the x13 programme and create the series that I'm after, but I can't figure out how to read that series back into Eviews. I have used the following:
cvnsa.x13(spec=satest1)
Where satest1 is a text object:
series{
title = "CVNSA"
start = 1997.1
period = 4
modelspan = (1997.01, 2013.04)
name = "CVNSA"
file = "C:\AppData\ev_temp\EVX13TMP.DAT"
decimals = 1
}
transform{
function = log
}
force{
type = regress
save = saa
}
x11{
save = (d11)
}
A file called evx13tmp.saa is created, and this holds the dataseries that I want. Is there an easy way to read this into Eviews?
Thank you!!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13584
- Joined: Tue Sep 16, 2008 5:38 pm
Re: x12 specification file
I guess just use wfopen to open it.
-
xprimexinverse
- Posts: 41
- Joined: Fri Sep 18, 2015 11:41 am
- Location: Dublin, Ireland
- Contact:
Re: x12 specification file
Hi, HollEviews.
I've attached a subroutine that handles both the force option as well as automatic reading of the .saa file.
The key to this is really just to use @temppath to locate the .saa file. Once you have the file's location, an import statement can load the data into the workfile for you.
See the attached program to see what this looks like. Both Quarterly and Monthly variations of the import statement are handled.
Cheers,
Graeme
I've attached a subroutine that handles both the force option as well as automatic reading of the .saa file.
The key to this is really just to use @temppath to locate the .saa file. Once you have the file's location, an import statement can load the data into the workfile for you.
See the attached program to see what this looks like. Both Quarterly and Monthly variations of the import statement are handled.
Cheers,
Graeme
- Attachments
-
- x13force.prg
- x13force.prg
- (2.32 KiB) Downloaded 586 times
Who is online
Users browsing this forum: No registered users and 1 guest
