I got an error because of using the command setobs in the loop to re-define the size of my panel. 

Thank you very much,

Aefdz


2013/5/19 <gretl-users-request@lists.wfu.edu>
Send Gretl-users mailing list submissions to
        gretl-users@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@lists.wfu.edu

You can reach the person managing the list at
        gretl-users-owner@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: Gnuplot save eps (Gabriela Nodari)
   2. IRF plot error (Gabriela Nodari)
   3. Re: Gnuplot save eps (Allin Cottrell)
   4. Re: IRF plot error (Allin Cottrell)
   5. Question (Antonio Elias)
   6. Re: Question (Allin Cottrell)


----------------------------------------------------------------------

Message: 1
Date: Sun, 19 May 2013 03:59:20 +0200
From: Gabriela Nodari <gabriela.nodari@gmail.com>
Subject: Re: [Gretl-users] Gnuplot save eps
To: r.lucchetti@univpm.it, Gretl list <gretl-users@lists.wfu.edu>
Message-ID:
        <CAHHsSo+UULz540n3VXTf2b7LoyMO8DTrmXa+WXBO7EV+3Q5taQ@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you for your answer.
I got the output saved in eps format. However, it consists only of a part
of the whole graph. I don't know what is going on. Could you please take a
look to my code? The data reports IRFs results.

Please notice that I have reduce the time horizon for ease of exposition,
i.e. you will find "xrange" until 60, whereas I have reported here only 4
point estimates per IRF.

set term postscript eps "Times New Roman Bold,13" size 640,480
set encoding utf8
# user-defined plot
set style line 1 lc rgb "#0000ff"
set style line 2 lc rgb "#ff0021"
set style line 3 lc rgb "#070d07"
set style line 4 lc rgb "#e10c2c"
set style line 5 lc rgb "#00cc00"
set style line 6 lc rgb "#0000ff"
set style line 8 lc rgb "#00fff2"
set style increment user
set yrange [-11.0976:2.30634]
set xrange [0:60]
set xlabel 'months'
#set ylabel 'Industrial Production'
set xzeroaxis
set key right bottom
set title ""
set style fill solid 0.175
set output '/Users/Gabriela/Desktop/IProb.eps'
plot \
'-' using 1:2:3 notitle w filledcurve, \
0 notitle w lines lt 0, \
'-' using 1:($2) title "baseline" w lines lw 2, \
'-' using 1:($2) title "S&P+VIX" w linespoints lw 2 pointinterval 4
pointsize 1 pt 9 , \
'-' using 1:($2) title "Confidence" w linespoints lw 2 pointinterval 4
pointsize 1 pt 3, \
'-' using 1:($2) title "Regulation" w linespoints lw 2 pointinterval 4
pointsize 1 pt 13
# baseline + conf. int
0 -1.85357 -0.0306622
1 -2.11585 -0.242486
2 -3.61335 -1.21308
3 -4.90273 -1.99271
e
0 -0.985838
1 -1.24222
2 -2.53488
3 -3.67198
e
0 -1.56746
1 -1.69876
2 -2.77689
3 -3.42978
e
0 -0.918372
1 -1.05826
2 -2.23884
3 -3.21814
e
0 -0.533756
1 -0.577218
2 -1.09126
3 -1.62523
e



2013/5/17 Riccardo (Jack) Lucchetti <r.lucchetti@univpm.it>

> On Fri, 17 May 2013, Gabriela Nodari wrote:
>
>  Dear gretl users,
>>
>> I have modified the code of a graph generated by gretl. I am no more able
>> to save this graph in eps format using menu options. Does someone know
>> what
>> I should write in the code to save this graph?
>>
>
> See the help for "set terminal" and "set output". For example:
>
> <gnuplot>
> set terminal eps
> set output 'Moo.eps'
> plot cos(x)
> </gnuplot>
>
>
> ------------------------------**-------------------------
>   Riccardo (Jack) Lucchetti
>   Dipartimento di Scienze Economiche e Sociali (DiSES)
>
>   Universit? Politecnica delle Marche
>   (formerly known as Universit? di Ancona)
>
>   r.lucchetti@univpm.it
>   http://www2.econ.univpm.it/**servizi/hpp/lucchetti<http://www2.econ.univpm.it/servizi/hpp/lucchetti>
> ------------------------------**-------------------------
> _______________________________________________
> Gretl-users mailing list
> Gretl-users@lists.wfu.edu
> http://lists.wfu.edu/mailman/listinfo/gretl-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20130519/539cfc1c/attachment-0001.html

------------------------------

Message: 2
Date: Sun, 19 May 2013 04:14:13 +0200
From: Gabriela Nodari <gabriela.nodari@gmail.com>
Subject: [Gretl-users] IRF plot error
To: Gretl list <gretl-users@lists.wfu.edu>
Message-ID:
        <CAHHsSoLiEx30ryTsvUbx=BkaskhmdLuYFdmwE9A+7frYea=zQg@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear gretl users,

I have a problem with plotting IRFs of a SVAR model saved on the icon menu.
Specifically, once I close a session (I mean closing gretl), after having
estimated and saved a SVAR model via script, I am not able to plot its IRFs
when I re-open the session. Even if the "bundle" is saved on the icon menu,
I use a script to plot the IRFs (just using IRFplot(&Mod,1,1) and I get the
following message:

gretl version 1.9.12cvs
Current session: 2013-05-19 04:06
? IRFplot(&SVARregs,2,1)
"snames": no such item
*** error in function IRFplot
> snames = obj["snames"]

Error executing script: halting
> IRFplot(&SVARregs,2,1)

Any suggestion?

Thanks in advance.
Gabriela
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20130519/e2610c1e/attachment-0001.html

------------------------------

Message: 3
Date: Sun, 19 May 2013 09:18:12 +0100 (BST)
From: Allin Cottrell <cottrell@wfu.edu>
Subject: Re: [Gretl-users] Gnuplot save eps
To: Gretl list <gretl-users@lists.wfu.edu>
Message-ID: <alpine.LNX.2.03.1305190915390.508@wfu.edu>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Sun, 19 May 2013, Gabriela Nodari wrote:

> Thank you for your answer.
> I got the output saved in eps format. However, it consists only of a part
> of the whole graph. I don't know what is going on. Could you please take a
> look to my code? The data reports IRFs results.
>
> Please notice that I have reduce the time horizon for ease of exposition,
> i.e. you will find "xrange" until 60, whereas I have reported here only 4
> point estimates per IRF.
>
> set term postscript eps "Times New Roman Bold,13" size 640,480

You're asking here for a plot that's 640 x 480 inches (the
inch being the default unit when specifying the size of an EPS
plot). Make that something sane and you should be OK.

More generally, in gnuplot, try "help postscript".

Allin Cottrell


------------------------------

Message: 4
Date: Sun, 19 May 2013 10:58:44 +0100 (BST)
From: Allin Cottrell <cottrell@wfu.edu>
Subject: Re: [Gretl-users] IRF plot error
To: Gretl list <gretl-users@lists.wfu.edu>
Message-ID: <alpine.LNX.2.03.1305191053270.22176@wfu.edu>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Sun, 19 May 2013, Gabriela Nodari wrote:

> I have a problem with plotting IRFs of a SVAR model saved on the icon menu.
> Specifically, once I close a session (I mean closing gretl), after having
> estimated and saved a SVAR model via script, I am not able to plot its IRFs
> when I re-open the session. [...]

This is likely to do with the fact that the "creator"
information was not being recorded when a bundle was saved as
part of a session file. That's now fixed in CVS and snapshots.

I've verified that if I create a bundle using the "IS-LM"
example SVAR script and save the gretl session, then on
reopening the session file the bundle has a Graph menu and IRF
plots can be drawn.

Allin Cottrell



------------------------------

Message: 5
Date: Sun, 19 May 2013 12:22:46 +0200
From: Antonio Elias <antonioefz91@gmail.com>
Subject: [Gretl-users] Question
To: gretl-users@lists.wfu.edu
Message-ID:
        <CAHKMGVu_quAmH0LsJdxFfwCt1nrxa393-Esn2D6YQeU59E-q3w@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello all,

Sorry if my question is stupid. I am an undergraduated student and I
performaced a function with my own estimator for my final project. Now I
would like to create a monte carlo silumation for testing the behaviour of
my parameters but I read in the manual that a loop does not allow a
function inside. Would be possible do it?

Thank you very much,
Aefz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20130519/b98d92c3/attachment-0001.html

------------------------------

Message: 6
Date: Sun, 19 May 2013 12:04:37 +0100 (BST)
From: Allin Cottrell <cottrell@wfu.edu>
Subject: Re: [Gretl-users] Question
To: Gretl list <gretl-users@lists.wfu.edu>
Message-ID: <alpine.LNX.2.03.1305191159180.23035@wfu.edu>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Sun, 19 May 2013, Antonio Elias wrote:

> Sorry if my question is stupid. I am an undergraduated student and I
> performaced a function with my own estimator for my final project. Now I
> would like to create a monte carlo silumation for testing the behaviour of
> my parameters but I read in the manual that a loop does not allow a
> function inside. Would be possible do it?

You cannot _define_ a function inside a loop. But you can
call a function from a loop just fine, which I presume is what
you really want to do.

<hansl>
function scalar trivial (scalar x)
   return 2*x
end function

# main script
loop i=1..10
   scalar k = trivial(i)
endloop
</hansl>

Allin Cottrell


------------------------------

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users

End of Gretl-users Digest, Vol 76, Issue 25
*******************************************