Ensuring "Include titles" checked in .CSV output dump

For questions regarding programming in the EViews programming language.

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

MT_MANC
Posts: 25
Joined: Tue Mar 10, 2009 5:22 am

Ensuring "Include titles" checked in .CSV output dump

Postby MT_MANC » Thu Jun 12, 2025 11:31 am

Eviews13 (Win 11)
Can't seem to find the correct option/switch to edit this simpe 2 -line .PRG script so that it acts "as if" the "Include titles" dialogue has been checked in dumping PMG output for Cross Section Error Correction estimation results (via Right Click + "Save to Disk" via manual GUI operation:

Code: Select all

' 2) SHORT-RUN COEFFICIENTS (PMG Panel estimation- ARDL) ' freeze(tblSR) STUukPG01.srcoefs ' first attempt freeze(tblSR) STUukPG01.ecresults ' freeze SR coeffs **with titles** (Variable, Coefficient, Std. Error, …) tblSR.save(t=csv) "C:\Data\Fit\PMG\OUT\STUukPG\STUukPG_srCOEFFS.csv" ' save to CSV (headers already in tblSR)
It should produce the following .CSV output WITH the _a, _ar, Titles also dumped in the .CSV:

Code: Select all

_a ,,,, Variable,Coefficient,Std. Error,t-Statistic,Prob. ,,,, COINTEQ,-0.043700,0.060234,-0.725505,0.4726 C,0.216081,0.298298,0.724379,0.4733 ,,,, _ar ,,,, Variable,Coefficient,Std. Error,t-Statistic,Prob. ,,,, COINTEQ,-0.045820,0.020021,-2.288563,0.0278 C,0.179750,0.076382,2.353296,0.0239 ,,,,
BUT is in fact producing this - without the Cross-Sections (ie Country suffix IDs) eg "_a", "_ar" etc as above:

Code: Select all

,,,, Variable,Coefficient,Std. Error,t-Statistic,Prob. ,,,, COINTEQ,-0.043700,0.060234,-0.725505,0.4726 C,0.216081,0.298298,0.724379,0.4733 ,,,, ,,,, Variable,Coefficient,Std. Error,t-Statistic,Prob. ,,,, COINTEQ,-0.045820,0.020021,-2.288563,0.0278 C,0.179750,0.076382,2.353296,0.0239 ,,,, ,,,, Variable,Coefficient,Std. Error,t-Statistic,Prob. ,,,,
Is this in fact possible using .PRG at all ???..maybe not for .CSV but only .TXT output ?
Most kind

EViews Matt
EViews Developer
Posts: 583
Joined: Thu Apr 25, 2013 7:48 pm

Re: Ensuring "Include titles" checked in .CSV output dump

Postby EViews Matt » Fri Jun 13, 2025 1:56 pm

Hello,

Include the "title" option with the save procedure, e.g.,

Code: Select all

tblSR.save(t=csv,title) "C:\Data\Fit\PMG\OUT\STUukPG\STUukPG_srCOEFFS.csv"


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests