Logan Kelly | 23 Apr 06:56 2014

Questions about strings and string substitution

Hello,

 

Question about strings and string substitution. Why does option 1 yield different output from option 2 (see below). I am using 1.9.14 on Win 7 64bit

 

hansel:

 

#option 1

s = "1\n2\n3\n"

printf " <at> s"

 

#option 2

printf "1\n2\n3\n"

 

OUTPUT:

 

gretl version 1.9.14

Current session: 2014-04-22 23:49

#option 1

? s = "1\n2\n3\n"

Replaced string s

? printf " <at> s"

1\n2\n3\n

 

#option 2

? printf "1\n2\n3\n"

1

2

3

 

Thanks,

 

Logan

<div>
<div class="WordSection1">
<p class="MsoNormal">Hello,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Question about strings and string substitution. Why does option 1 yield different output from option 2 (see below). I am using 1.9.14 on Win 7 64bit<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">hansel:<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">#option 1<p></p></p>
<p class="MsoNormal">s = "1\n2\n3\n"<p></p></p>
<p class="MsoNormal">printf " <at> s"<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">#option 2<p></p></p>
<p class="MsoNormal">printf "1\n2\n3\n"<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">OUTPUT:<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">gretl version 1.9.14<p></p></p>
<p class="MsoNormal">Current session: 2014-04-22 23:49<p></p></p>
<p class="MsoNormal">#option 1<p></p></p>
<p class="MsoNormal">? s = "1\n2\n3\n"<p></p></p>
<p class="MsoNormal">Replaced string s<p></p></p>
<p class="MsoNormal">? printf " <at> s"<p></p></p>
<p class="MsoNormal">1\n2\n3\n<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">#option 2<p></p></p>
<p class="MsoNormal">? printf "1\n2\n3\n"<p></p></p>
<p class="MsoNormal">1<p></p></p>
<p class="MsoNormal">2<p></p></p>
<p class="MsoNormal">3<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Logan<p></p></p>
</div>
</div>
Logan Kelly | 18 Apr 22:23 2014

Seasonal adjustment procedures not available

Hello all,

 

I am having some difficulty getting the seasonal adjustment functions working. I have tried installing the packages from the gretl website but gretl does not recognize that they are installed.

 

I am running  1.19.14 on Windows 7 64 Bit

 

Thanks,

 

Logan

<div>
<div class="WordSection1">
<p class="MsoNormal">Hello all,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I am having some difficulty getting the seasonal adjustment functions working. I have tried installing the packages from the gretl website but gretl does not recognize that they are installed.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I am running &nbsp;1.19.14 on Windows 7 64 Bit<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Logan<p></p></p>
</div>
</div>
GOO Creations | 15 Apr 08:58 2014
Picon

Mahalanobis Distance - Execution Time

Hi,

I'm benchmarking the Mahalanobis distance to see how the accuracy and execution time changes with an increasing sample size. As far as I understand the algorithm the execution time should grow linearly as the sample size increases. The weird thing is that the time grows linearly up to (and including) 199 samples, but then suddenly has a drop at 200 samples. I've attached a graph to illustrate this.

I'm using it to do outlier detection. The time drops at 200 samples, but the accuracy increases without a sudden drop.

Does anyone know why this happens?

Chris
<div><div dir="ltr">
<div>
<div>
<div>
<div>Hi,<br><br>
</div>I'm benchmarking the Mahalanobis distance to see how the accuracy and execution time changes with an increasing sample size. As far as I understand the algorithm the execution time should grow linearly as the sample size increases. The weird thing is that the time grows linearly up to (and including) 199 samples, but then suddenly has a drop at 200 samples. I've attached a graph to illustrate this.<br><br>
</div>I'm using it to do outlier detection. The time drops at 200 samples, but the accuracy increases without a sudden drop.<br><br>
</div>Does anyone know why this happens?<br><br>
</div>Chris<br>
</div></div>
Picon

Gretl on Linux Mint not working without ldconfig

Dear Riccardo and Allin,

I have experienced some trouble with a newly compiled gretl from CVS (Linux Mint Debian Edition) but luckily a 2012-10-09 message from Riccardo advising to use “sudo ldconfig” helped overcome the “error while loading shared libraries: libgretl-1.0.so.9” error message that popped if gretl were started from console. After “make” and “sudo make install”, the standard way of launching gretl (through buttons from the start menu) didn’t work, so I resorted to the console, googled the error message, found Riccardo’s answer and implemented it. And it worked! However, there is one question: could you announce it (or include it somewhere in the compiler readme) that the command “sudo ldconfig” should be used if gretl GUI just won’t start after the compilation? Or maybe, since “make install” is invoked by the superuser, one of the last steps of the installation should be a forced “ldconfig” run just in case? Or does it seem potentially more toxic rather than remedying?

P.S. The nested “--progressive” loops no longer crash the programme, thank you very much for the fix!

--
Yours sincerely,      | С уважением,
Andreï V. Kostyrka. | Андрей Викторович Костырка.
http://kostyrka.ru, http://kostyrka.ru/blog
<div><div dir="ltr">
<div>Dear Riccardo and Allin,<br><br>
</div>I have experienced some trouble with a newly compiled gretl from CVS (Linux Mint Debian Edition) but luckily a 2012-10-09 message from Riccardo advising to use &ldquo;sudo ldconfig&rdquo; helped overcome the &ldquo;error while loading shared libraries: libgretl-1.0.so.9&rdquo; error message that popped if gretl were started from console. After &ldquo;make&rdquo; and &ldquo;sudo make install&rdquo;, the standard way of launching gretl (through buttons from the start menu) didn&rsquo;t work, so I resorted to the console, googled the error message, found Riccardo&rsquo;s answer and implemented it. And it worked! However, there is one question: could you announce it (or include it somewhere in the compiler readme) that the command &ldquo;sudo ldconfig&rdquo; should be used if gretl GUI just won&rsquo;t start after the compilation? Or maybe, since &ldquo;make install&rdquo; is invoked by the superuser, one of the last steps of the installation should be a forced &ldquo;ldconfig&rdquo; run just in case? Or does it seem potentially more toxic rather than remedying?<br><br><div>P.S. The nested &ldquo;--progressive&rdquo; loops no longer crash the programme, thank you very much for the fix!<br>
</div>
<div><div>
<br clear="all"><div><div dir="ltr">
--<br>Yours sincerely, &nbsp; &nbsp;&nbsp; | &#1057; &#1091;&#1074;&#1072;&#1078;&#1077;&#1085;&#1080;&#1077;&#1084;,<br>Andre&iuml; V. Kostyrka. | &#1040;&#1085;&#1076;&#1088;&#1077;&#1081; &#1042;&#1080;&#1082;&#1090;&#1086;&#1088;&#1086;&#1074;&#1080;&#1095; &#1050;&#1086;&#1089;&#1090;&#1099;&#1088;&#1082;&#1072;.<br><a href="http://kostyrka.ru" target="_blank">http://kostyrka.ru</a>, <a href="http://kostyrka.ru/blog" target="_blank">http://kostyrka.ru/blog</a><br>
</div></div>
</div></div>
</div></div>
Tim Nall | 13 Apr 12:55 2014
Picon

No lags though option selected

gretl list,

One prob and one picayune complaint:

1) GRETL 1.9.14 Taiwan Windows XP professional, using GUI, [Add -->
lags of selected variables] has no effect. I have closed/reopened
GRETL, made sure I was selecting one or more variables, tried
repeatedly. The other options under the "Add" menu item all seem to
work.

2) I know this is picayune whining, and for that I do sincerely
apologize. But the users Guide etc. are all geared toward PhDs in
Stats or Econometrics: very heavy on the math equations (don't hate me
if I say "Who cares? I can't eat equations"), and all examples use
scripts instead of GUI. It's very, very, very hard (in fact, usually
impossible) to find out "If I encounter obstacle x, what do I do? And
if I find out what to do, how do I find it on the menus?" Sorry again.
Over and out.

TMN
Picon

Gretl crashes while doing a nested ARIMA loop

Greetings, dear developers!

Please consider the following humble code I am trying use to illustrate the usefulness of a whole portfolio of models compared by AIC. What I am expecting: (1) generate a true ARMA(2,2) model, (2) run a loop with i=1..5 and j=1..5 for ARMA estimation and obtain the AIC’s for those, (3) the result should look like those “long” models like ARMA(5,5) include more redundant lags and they will be punished by Akaike and its DOF loss penalty.
However, on Linux Debian (testing, both x32 and x64) the 1.9.14 (build 2014-03-19) version crashes and quits without any warning when the following script is run:
##########
nulldata 500
setobs 1 1 --special-time-series
genr time

set seed 20140413
series wn = randgen(n,0,1)

# ARMA(2,2) model, seems both stationary and invertible
series z = 4.5
z = 1 + 0.25*z(-1) + 0.55*z(-2) + wn + 0.5*wn(-1) + 0.5*wn(-2)

# The beast
loop i=1..5 --progressive
    loop j=1..5 --progressive
    arima $i 0 $j ; z
    printf "Akaike criterion: %f\n", $aic
    endloop
endloop
##########

Same problem if *arma* command is used.
I tried to run it on the current snapshot (1.9.15cvs b.2014-04-04) for Windows x32, but to no avail: the message given before the crash is “MS Visual C++ Runtime Library: This application has requested the Runtime to terminate it in an unusual way”.

What can I do in order to avoid this mishap and sort of estimate ARMA(i,j) for various $i and $j in a loop?

Best wishes,
Andreï V. Kostyrka

--
С уважением,
—Андрей Викторович Костырка.—
http://kostyrka.ru, http://kostyrka.ru/blog
<div><div dir="ltr">
<div>
<div>
<div>
<div>
<div>Greetings, dear developers!<br><br>
</div>Please consider the following humble code I am trying use to illustrate the usefulness of a whole portfolio of models compared by AIC. What I am expecting: (1) generate a true ARMA(2,2) model, (2) run a loop with i=1..5 and j=1..5 for ARMA estimation and obtain the AIC&rsquo;s for those, (3) the result should look like those &ldquo;long&rdquo; models like ARMA(5,5) include more redundant lags and they will be punished by Akaike and its DOF loss penalty.<br>
</div>However, on Linux Debian (testing, both x32 and x64) the 1.9.14 (build 2014-03-19) version crashes and quits without any warning when the following script is run:<br>##########<br>nulldata 500<br>setobs 1 1 --special-time-series<br>
genr time<br><br>set seed 20140413<br>series wn = randgen(n,0,1)<br><br># ARMA(2,2) model, seems both stationary and invertible<br>series z = 4.5<br>z = 1 + 0.25*z(-1) + 0.55*z(-2) + wn + 0.5*wn(-1) + 0.5*wn(-2)<br><br># The beast<br>
loop i=1..5 --progressive<br>&nbsp;&nbsp;&nbsp; loop j=1..5 --progressive<br>&nbsp;&nbsp;&nbsp; arima $i 0 $j ; z<br>&nbsp;&nbsp;&nbsp; printf "Akaike criterion: %f\n", $aic<br>&nbsp;&nbsp;&nbsp; endloop<br>endloop<br>##########<br><br>
</div>
<div>Same problem if *arma* command is used.<br>
</div>I tried to run it on the current snapshot (1.9.15cvs b.2014-04-04) for Windows x32, but to no avail: the message given before the crash is &ldquo;MS Visual C++ Runtime Library: This application has requested the Runtime to terminate it in an unusual way&rdquo;.<br><br>
</div>What can I do in order to avoid this mishap and sort of estimate ARMA(i,j) for various $i and $j in a loop?<br><br>
</div>
<div>Best wishes,<br>
</div>
<div>Andre&iuml; V. Kostyrka<br>
</div>
<div><div><div><div><div><div>
<div><div>
<br clear="all"><div>--<br>&#1057; &#1091;&#1074;&#1072;&#1078;&#1077;&#1085;&#1080;&#1077;&#1084;,<br>&mdash;&#1040;&#1085;&#1076;&#1088;&#1077;&#1081; &#1042;&#1080;&#1082;&#1090;&#1086;&#1088;&#1086;&#1074;&#1080;&#1095; &#1050;&#1086;&#1089;&#1090;&#1099;&#1088;&#1082;&#1072;.&mdash;<br><a href="http://kostyrka.ru" target="_blank">http://kostyrka.ru</a>, <a href="http://kostyrka.ru/blog" target="_blank">http://kostyrka.ru/blog</a><br>
</div>
</div></div>
</div></div></div></div></div></div>
</div></div>
valentina colombo | 12 Apr 17:39 2014
Picon

Re: Gretl-users Digest, Vol 87, Issue 8

Thanks,
I have tried the codes below and the output is as Sven's code.
Thanks again
Valentina


> From: gretl-users-request-npDYnXcwJHngpn9g0Uvcdg@public.gmane.org
> Subject: Gretl-users Digest, Vol 87, Issue 8
> To: gretl-users <at> lists.wfu.edu
> Date: Fri, 11 Apr 2014 12:00:05 -0400
>
> Send Gretl-users mailing list submissions to
> gretl-users <at> lists.wfu.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.wfu.edu/mailman/listinfo/gretl-users
> or, via email, send a message with subject or body 'help' to
> gretl-users-request-npDYnXcwJHngpn9g0Uvcdg@public.gmane.org
>
> You can reach the person managing the list at
> gretl-users-owner <at> lists.wfu.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gretl-users digest..."
>
>
> Today's Topics:
>
> 1. Re: Export output to excel or csv (Ignacio Diaz-Emparanza)
> 2. Re: Export output to excel or csv (Riccardo (Jack) Lucchetti)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 11 Apr 2014 10:07:11 +0200
> From: Ignacio Diaz-Emparanza <ignacio.diaz-emparanza-+ngl/9zrRLQ@public.gmane.org>
> Subject: Re: [Gretl-users] Export output to excel or csv
> To: gretl-users-npDYnXcwJHngpn9g0Uvcdg@public.gmane.org
> Message-ID: <5347A2AF.4020800-+ngl/9zrRLQ@public.gmane.org>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On 11/04/14 09:56, Ignacio Diaz-Emparanza wrote:
> > ..
> > ##########
> > set messages off
> > set echo off
> > matrix B=$coeff
> > scalar ncoefs=rows(B)
> > outfile coefficients.csv --write
> > loop i=1..ncoefs --quiet
> > printf "%.4f, %.4f\n ", B[i,1], B[i,2]
> > endloop
> > outfile --close
> > </hansl>
> >
>
> Sorry, the space after \n should not be there.
>
>
> --
> Firma Arista
> *Ignacio D?az-Emparanza*
> Zuzendaria/Director
> ignacio.diaz-emparanza-+ngl/9zrRLQ@public.gmane.org <mailto:ignacio.diaz.emparanza-+ngl/9zrRLQ@public.gmane.org>
> 94 6013732
> *EKONOMIA APLIKATUA III SAILA (EKONOMETRIA ETA ESTATISTIKA)/
> DEPARTAMENTO DE ECONOM?A APLICADA III (ECONOMETR?A Y ESTAD?STICA)
> UPV/EHU*
> Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
> *T.: +34 946013740* | *F.: +34 946013754*
> *www.ea3.ehu.es* <http://www.ea3.ehu.es>
>
> ERNE! Baliteke mezu honen zatiren bat edo mezu osoa legez babestuta
> egotea. Mezuak badu bere hartzailea. Okerreko helbidera heldu bada
> (helbidea gaizki idatzi, transmisioak huts egin) eman abisu igorleari,
> korreo honi erantzunda. Kontuz! Mezua ez bada zuretzat, ez erabili, ez
> zabaldu beste inori, ez kopiatu eta ez baliatu.
> ?ATENCI?N! Este mensaje contiene informaci?n privilegiada o confidencial
> a la que s?lo tiene derecho a acceder el destinatario. Si usted lo
> recibe por error le agradecer?amos que no hiciera uso de la informaci?n
> y que se pusiese en contacto con el remitente.
>
> E-mail hau inprimatu baino lehen egiaztatu inprimatzeko beharra.
> Antes de imprimir este e-mail piense bien si es necesario hacerlo.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20140411/7d7194ce/attachment-0001.html
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: firma_email_upv_euskampus_bilingue.gif
> Type: image/gif
> Size: 4236 bytes
> Desc: not available
> Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20140411/7d7194ce/attachment-0002.gif
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: recicla_firma_email_upv.gif
> Type: image/gif
> Size: 225 bytes
> Desc: not available
> Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20140411/7d7194ce/attachment-0003.gif
>
> ------------------------------
>
> Message: 2
> Date: Fri, 11 Apr 2014 10:15:40 +0200 (CEST)
> From: "Riccardo (Jack) Lucchetti" <r.lucchetti-kONsfx5siupeoWH0uzbU5w@public.gmane.org>
> Subject: Re: [Gretl-users] Export output to excel or csv
> To: Gretl list <gretl-users-npDYnXcwJHngpn9g0Uvcdg@public.gmane.org>
> Message-ID: <alpine.DEB.2.10.1404111013330.4241-daYPOPE8f9Eay0zuAyHWDjUZDU+1vuVT@public.gmane.org>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Fri, 11 Apr 2014, Ignacio Diaz-Emparanza wrote:
>
> > On 10/04/14 16:14, valentina colombo wrote:
> >> Dera gretl users,
> >> I had estimate my SVAR model and I need to export the estimated
> >> coefficients (bootdata) to excel or csv file. I have tried to use the
> >> following command but it is storing my variables but not bootdata (from a
> >> SVAR).
> >> store /home/valentina/bootdata.csv bootdata
> >> ! gnumeric /home/valentina/bootdata.csv
> >> Any suggestion? I cannot go on with my estimation!!
> >> Thanks
> >> Valentina
> >>
> >
> > For this type of things I use a combination of 'outfile' and 'printf'
> > commands. An example is below. The lines from 'open' to 'var' command are
> > taken from gretl example sw_ch14.in. The result is the file
> > "coefficients.csv" in your current gretl working directory.
> >
> > <hansl>
> > open sw_ch14.gdt
> >
> > # set the robust std errors variant used by S and W
> > set force_hc on
> > set hc_version 1
> >
> > genr infl = 400 * log(PUNEW/PUNEW(-1))
> > diff infl
> > lags d_infl LHUR
> > smpl 1962:1 1999:4
> >
> > # run "automatic" VAR, (see equations 14.5 and 14.6) in Stock and Watson,
> > # "Introduction to Econometrics", chapter 14
> > var 4 d_infl LHUR const -r
> >
> > ##########
> > set messages off
> > set echo off
> > matrix B=$coeff
> > scalar ncoefs=rows(B)
> > outfile coefficients.csv --write
> > loop i=1..ncoefs --quiet
> > printf "%.4f, %.4f\n ", B[i,1], B[i,2]
> > endloop
> > outfile --close
> > </hansl>
>
> Also: don't be fooled by file extensions. If you use the "mwrite" command,
> like Sven suggested, you'll obtain a text file that you can conveniently
> open either in your favourite text editor or in any spreadheet worth
> considering.
>
>
> -------------------------------------------------------
> Riccardo (Jack) Lucchetti
> Dipartimento di Scienze Economiche e Sociali (DiSES)
>
> Universit? Politecnica delle Marche
> (formerly known as Universit? di Ancona)
>
> r.lucchetti-kONsfx5siupeoWH0uzbU5w@public.gmane.org
> http://www2.econ.univpm.it/servizi/hpp/lucchetti
> -------------------------------------------------------
>
> ------------------------------
>
> _______________________________________________
> Gretl-users mailing list
> Gretl-users-npDYnXcwJHngpn9g0Uvcdg@public.gmane.org
> http://lists.wfu.edu/mailman/listinfo/gretl-users
>
> End of Gretl-users Digest, Vol 87, Issue 8
> ******************************************
<div><div dir="ltr">Thanks,<br>I have tried the codes below and the output is as Sven's code. <br>Thanks again<br>Valentina<br><br><br><div>&gt; From: gretl-users-request@...<br>&gt; Subject: Gretl-users Digest, Vol 87, Issue 8<br>&gt; To: gretl-users <at> lists.wfu.edu<br>&gt; Date: Fri, 11 Apr 2014 12:00:05 -0400<br>&gt; <br>&gt; Send Gretl-users mailing list submissions to<br>&gt; 	gretl-users <at> lists.wfu.edu<br>&gt; <br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt; 	http://lists.wfu.edu/mailman/listinfo/gretl-users<br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt; 	gretl-users-request@...<br>&gt; <br>&gt; You can reach the person managing the list at<br>&gt; 	gretl-users-owner <at> lists.wfu.edu<br>&gt; <br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of Gretl-users digest..."<br>&gt; <br>&gt; <br>&gt; Today's Topics:<br>&gt; <br>&gt;    1. Re: Export output to excel or csv (Ignacio Diaz-Emparanza)<br>&gt;    2. Re: Export output to excel or csv (Riccardo (Jack) Lucchetti)<br>&gt; <br>&gt; <br>&gt; ----------------------------------------------------------------------<br>&gt; <br>&gt; Message: 1<br>&gt; Date: Fri, 11 Apr 2014 10:07:11 +0200<br>&gt; From: Ignacio Diaz-Emparanza &lt;ignacio.diaz-emparanza@...&gt;<br>&gt; Subject: Re: [Gretl-users] Export output to excel or csv<br>&gt; To: gretl-users@...<br>&gt; Message-ID: &lt;5347A2AF.4020800@...&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; On 11/04/14 09:56, Ignacio Diaz-Emparanza wrote:<br>&gt; &gt; ..<br>&gt; &gt; ##########<br>&gt; &gt; set messages off<br>&gt; &gt; set echo off<br>&gt; &gt; matrix B=$coeff<br>&gt; &gt; scalar ncoefs=rows(B)<br>&gt; &gt; outfile coefficients.csv --write<br>&gt; &gt; loop i=1..ncoefs --quiet<br>&gt; &gt;     printf "%.4f, %.4f\n ", B[i,1], B[i,2]<br>&gt; &gt; endloop<br>&gt; &gt; outfile --close<br>&gt; &gt; &lt;/hansl&gt;<br>&gt; &gt;<br>&gt; <br>&gt; Sorry, the space after \n should not be there.<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Firma Arista<br>&gt; *Ignacio D?az-Emparanza*<br>&gt; Zuzendaria/Director<br>&gt; ignacio.diaz-emparanza@... &lt;mailto:ignacio.diaz.emparanza@...&gt;<br>&gt; 94 6013732<br>&gt; *EKONOMIA APLIKATUA III SAILA (EKONOMETRIA ETA ESTATISTIKA)/ <br>&gt; DEPARTAMENTO DE ECONOM?A APLICADA III (ECONOMETR?A Y ESTAD?STICA)<br>&gt; UPV/EHU*<br>&gt; Avda. Lehendakari Aguirre, 83 | 48015 BILBAO<br>&gt; *T.: +34 946013740* | *F.: +34 946013754*<br>&gt; *www.ea3.ehu.es* &lt;http://www.ea3.ehu.es&gt; 	<br>&gt; <br>&gt; ERNE! Baliteke mezu honen zatiren bat edo mezu osoa legez babestuta <br>&gt; egotea. Mezuak badu bere hartzailea. Okerreko helbidera heldu bada <br>&gt; (helbidea gaizki idatzi, transmisioak huts egin) eman abisu igorleari, <br>&gt; korreo honi erantzunda. Kontuz! Mezua ez bada zuretzat, ez erabili, ez <br>&gt; zabaldu beste inori, ez kopiatu eta ez baliatu.<br>&gt; ?ATENCI?N! Este mensaje contiene informaci?n privilegiada o confidencial <br>&gt; a la que s?lo tiene derecho a acceder el destinatario. Si usted lo <br>&gt; recibe por error le agradecer?amos que no hiciera uso de la informaci?n <br>&gt; y que se pusiese en contacto con el remitente.<br>&gt; <br>&gt; 	E-mail hau inprimatu baino lehen egiaztatu inprimatzeko beharra.<br>&gt; Antes de imprimir este e-mail piense bien si es necesario hacerlo.<br>&gt; <br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20140411/7d7194ce/attachment-0001.html <br>&gt; -------------- next part --------------<br>&gt; A non-text attachment was scrubbed...<br>&gt; Name: firma_email_upv_euskampus_bilingue.gif<br>&gt; Type: image/gif<br>&gt; Size: 4236 bytes<br>&gt; Desc: not available<br>&gt; Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20140411/7d7194ce/attachment-0002.gif <br>&gt; -------------- next part --------------<br>&gt; A non-text attachment was scrubbed...<br>&gt; Name: recicla_firma_email_upv.gif<br>&gt; Type: image/gif<br>&gt; Size: 225 bytes<br>&gt; Desc: not available<br>&gt; Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20140411/7d7194ce/attachment-0003.gif <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 2<br>&gt; Date: Fri, 11 Apr 2014 10:15:40 +0200 (CEST)<br>&gt; From: "Riccardo (Jack) Lucchetti" &lt;r.lucchetti@...&gt;<br>&gt; Subject: Re: [Gretl-users] Export output to excel or csv<br>&gt; To: Gretl list &lt;gretl-users@...&gt;<br>&gt; Message-ID: &lt;alpine.DEB.2.10.1404111013330.4241@...&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; On Fri, 11 Apr 2014, Ignacio Diaz-Emparanza wrote:<br>&gt; <br>&gt; &gt; On 10/04/14 16:14, valentina colombo wrote:<br>&gt; &gt;&gt; Dera gretl users,<br>&gt; &gt;&gt; I had estimate my SVAR model and I need to export the estimated <br>&gt; &gt;&gt; coefficients (bootdata) to excel or csv file. I have tried to use the <br>&gt; &gt;&gt; following command but it is storing my variables but not bootdata (from a <br>&gt; &gt;&gt; SVAR).<br>&gt; &gt;&gt; store /home/valentina/bootdata.csv bootdata<br>&gt; &gt;&gt; ! gnumeric /home/valentina/bootdata.csv<br>&gt; &gt;&gt; Any suggestion? I cannot go on with my estimation!!<br>&gt; &gt;&gt; Thanks<br>&gt; &gt;&gt; Valentina<br>&gt; &gt;&gt; <br>&gt; &gt;<br>&gt; &gt; For this type of things I use a combination of 'outfile' and 'printf' <br>&gt; &gt; commands. An example is below. The lines from 'open' to 'var' command are <br>&gt; &gt; taken from gretl example sw_ch14.in. The result is the file <br>&gt; &gt; "coefficients.csv" in your current gretl working directory.<br>&gt; &gt;<br>&gt; &gt; &lt;hansl&gt;<br>&gt; &gt; open sw_ch14.gdt<br>&gt; &gt;<br>&gt; &gt; # set the robust std errors variant used by S and W<br>&gt; &gt; set force_hc on<br>&gt; &gt; set hc_version 1<br>&gt; &gt;<br>&gt; &gt; genr infl = 400 * log(PUNEW/PUNEW(-1))<br>&gt; &gt; diff infl<br>&gt; &gt; lags d_infl LHUR<br>&gt; &gt; smpl 1962:1 1999:4<br>&gt; &gt;<br>&gt; &gt; # run "automatic" VAR, (see equations 14.5 and 14.6) in Stock and Watson,<br>&gt; &gt; # "Introduction to Econometrics", chapter 14<br>&gt; &gt; var 4 d_infl LHUR const -r<br>&gt; &gt;<br>&gt; &gt; ##########<br>&gt; &gt; set messages off<br>&gt; &gt; set echo off<br>&gt; &gt; matrix B=$coeff<br>&gt; &gt; scalar ncoefs=rows(B)<br>&gt; &gt; outfile coefficients.csv --write<br>&gt; &gt; loop i=1..ncoefs --quiet<br>&gt; &gt;    printf "%.4f, %.4f\n ", B[i,1], B[i,2]<br>&gt; &gt; endloop<br>&gt; &gt; outfile --close<br>&gt; &gt; &lt;/hansl&gt;<br>&gt; <br>&gt; Also: don't be fooled by file extensions. If you use the "mwrite" command, <br>&gt; like Sven suggested, you'll obtain a text file that you can conveniently <br>&gt; open either in your favourite text editor or in any spreadheet worth <br>&gt; considering.<br>&gt; <br>&gt; <br>&gt; -------------------------------------------------------<br>&gt;    Riccardo (Jack) Lucchetti<br>&gt;    Dipartimento di Scienze Economiche e Sociali (DiSES)<br>&gt; <br>&gt;    Universit? Politecnica delle Marche<br>&gt;    (formerly known as Universit? di Ancona)<br>&gt; <br>&gt;    r.lucchetti@...<br>&gt;    http://www2.econ.univpm.it/servizi/hpp/lucchetti<br>&gt; -------------------------------------------------------<br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; Gretl-users mailing list<br>&gt; Gretl-users@...<br>&gt; http://lists.wfu.edu/mailman/listinfo/gretl-users<br>&gt; <br>&gt; End of Gretl-users Digest, Vol 87, Issue 8<br>&gt; ******************************************<br>
</div> 		 	   		  </div></div>
Logan Kelly | 12 Apr 17:25 2014

create gretl database with the gretl scripting language

Hello,

 

Is there a way to create a gretl database with hansel? I am working with time series data with different frequencies. I looked in the User Guide but did not find much on how to create a database, but maybe I just missed it. If so apologies.

 

Logan

 

<div>
<div class="WordSection1">
<p class="MsoNormal">Hello,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Is there a way to create a gretl database with hansel? I am working with time series data with different frequencies. I looked in the User Guide but did not find much on how to create a database, but maybe I just missed it. If so apologies.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Logan <p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
</div>
Logan Kelly | 12 Apr 17:17 2014

How does gretl handle quater 5

Hello,

 

I have a quick question about haw gretl handles data imported from the BLS. If you download a series from the BLS, say into ms excel, you will get years with 5 quarters or 13 months. The Q5, or M13 for monthly data, is some annual summary of the data. What is the expected behavior of gretl in the case that I import the data without properly removing the non-observations, i.e. Q5/M13, from the csv file before importing? When I try this experiment in the import output I find

 

"2001q05": BLS-type nonsense? Trying again

 

Does gretl drop these rows from the data set? That is what appears to be happening. Also, is it terribly bad form to let gretl handle this issue rather than removing the rows before import?

 

Thanks,

 

Logan

 

<div>
<div class="WordSection1">
<p class="MsoNormal">Hello,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I have a quick question about haw gretl handles data imported from the BLS. If you download a series from the BLS, say into ms excel, you will get years with 5 quarters or 13 months. The Q5, or M13 for monthly data, is some annual summary
 of the data. What is the expected behavior of gretl in the case that I import the data without properly removing the non-observations, i.e. Q5/M13, from the csv file before importing? When I try this experiment in the import output I find<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">"2001q05": BLS-type nonsense? Trying again<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Does gretl drop these rows from the data set? That is what appears to be happening. Also, is it terribly bad form to let gretl handle this issue rather than removing the rows before import?<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Thanks,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Logan <p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>
</div>
valentina colombo | 10 Apr 17:49 2014
Picon

Export from gretl to excel

Dear Gretl users,
I find a solution to export the output in excel. However, it is very tedious. If anyone has some suggestion to do that with a gretl command it will be great.
Thanks
Valentina
<div><div dir="ltr">Dear Gretl users,<br>I find a solution to export the output in excel. However, it is very tedious. If anyone has some suggestion to do that with a gretl command it will be great.<br>Thanks<br>Valentina<br>
</div></div>
valentina colombo | 10 Apr 16:14 2014
Picon

Export output to excel or csv

Dera gretl users,
I had estimate my SVAR model and I need to export the estimated coefficients (bootdata) to excel or csv file. I have tried to use the following command but it is storing my variables but not bootdata (from a SVAR).
store /home/valentina/bootdata.csv bootdata ! gnumeric /home/valentina/bootdata.csvAny suggestion? I cannot go on with my estimation!!
Thanks
Valentina
<div><div dir="ltr">Dera gretl users,<br>I had estimate my SVAR model and I need to export the estimated coefficients (bootdata) to excel or csv file. I have tried to use the following command but it is storing my variables but not bootdata (from a SVAR).<br>store /home/valentina/bootdata.csv bootdata
! gnumeric /home/valentina/bootdata.csvAny suggestion? I cannot go on with my estimation!!<br>Thanks<br>Valentina<br>
</div></div>

Gmane