On Tue, 25 May 2010, Henrique Andrade wrote:
> Now, because I just need the values for 6, 12 and 24, I'm trying to
> substitute the second line "loop for (n=6;n<=24;n=n*2)" for this:
>
> loop for (n=6;n=12;n=24)
>
> But the script isn't working. Any hints?
This, maybe?
scalar m = 3
scalar bas
Dear Henrique,
you have to simply follow the syntax. Take a look at Chapter 9 in the User's
Guide (Help/User's guide in the menu). Simple example on page 60 will help!
Best wishes
Daniel
-Original Message-
From: Henrique Andrade
To: Gretl list
List-Post: gretl-users@gretlml.univpm.it
Hi Henrique,
I believe that this does what you want:
loop for (n=6; n<=24; n*=2) --quiet
No other simple options.
On Tue, May 25, 2010 at 8:53 PM, Henrique Andrade wrote:
> Dear Riccardo, Kehl and Artur,
>
> Thanks a lot for your help! I'd tried all the options you gave me and
> my final scrip
Or, if your index is something like of a geometric series as it seems to
be (let's say 6, 12, 24, 48, and so on) and too long to do manually
you can try this one:
scalar count=0
loop for (count=6;count<=24;count=count*2) --quiet
endloop
<\script>
cheers,
artur
Riccardo (Jack)
Dear Riccardo, Kehl and Guilherme,
I was looking for something simple. The option "loop for (n=6; n<=24; n*=2)"
worked just fine. But in my humble opinion the option "loop for (n=6; n=12;
n=24)" should work too, but this is not a big deal ;-)
Thank you so much!
Um abraço,
Henrique
Em 25 de maio
Am 25.05.2010 17:02, schrieb Claudio Shikida (敷田治誠 クラウジオ):
> Yes, but just as independent variables. I cannot include them as
> instruments. That´s my question. Thanks for answering me, but the
> problem persists for me. If you can use lags as instruments, so my
> version has some bug.
>
which i
Dear Riccardo, Kehl and Artur,
Thanks a lot for your help! I'd tried all the options you gave me and
my final script looks like this:
scalar n=0
loop for (n=6;n<=24;n=n*2) --quiet
scalar m = $T - n + 1
loop j=2..nelemY --quiet
matrix R$n_$j = zeros(m,1)
loop i=1..m --quie
Am 25.05.2010 14:20, schrieb Claudio Shikida (敷田治誠 クラウジオ):
> Hello to all,
>
> Straight to the point. I converted an old Eviews file to Gretl. The
> series were ok, all was going well. They are time series. I updated the
> series and generated the logs, d(logs) and also logs(-k) and dlogs(-k).
> A
Ah, I got it. My mistake. thanks.
2010/5/25 Claudio Shikida (敷田治誠 クラウジオ)
> That´s weird. Mine is exactly this version, my windows is a 64 bits
> (windows 7) and I still don´t get it. It seems obvious - even stupid - to me
> that I should have this option. Maybe I have to reinstall it.
>
> Thank
That´s weird. Mine is exactly this version, my windows is a 64 bits (windows
7) and I still don´t get it. It seems obvious - even stupid - to me that I
should have this option. Maybe I have to reinstall it.
Thank you so much.
Claudio
2010/5/25 Sven Schreiber
> Am 25.05.2010 17:02, schrieb Clau
Yes, but just as independent variables. I cannot include them as
instruments. That´s my question. Thanks for answering me, but the problem
persists for me. If you can use lags as instruments, so my version has some
bug.
Claudio
2010/5/25 Sven Schreiber
> Am 25.05.2010 14:20, schrieb Claudio Shi
Or alternatively you can try
loop i=1..n
and use 6*i inside the loop if you need the numbers you wrote as an example.
daniel
-Original Message-
From: "Riccardo (Jack) Lucchetti"
To: Gretl list
List-Post: gretl-users@gretlml.univpm.it
Date: Tue, 25 May 2010 08:08:26 +0200 (CEST)
Subjec
Hello to all,
Straight to the point. I converted an old Eviews file to Gretl. The series
were ok, all was going well. They are time series. I updated the series and
generated the logs, d(logs) and also logs(-k) and dlogs(-k). All of this was
fine. So I went to the Instrumental Variables in order t
On Tue, 25 May 2010, Henrique Andrade wrote:
> Dear Gretl Community,
>
> I'm trying to use a loop index inside a script but I don't know how. According
> to "Gretl User’s Guide" the syntax looks like this:
>
> loop i=1..24
>
> But I just need the points where "i" is equal to 6, 12 and 24. Somet
Dear Gretl Community,
I'm trying to use a loop index inside a script but I don't know how.
According
to "Gretl User’s Guide" the syntax looks like this:
loop i=1..24
But I just need the points where "i" is equal to 6, 12 and 24. Something
like this:
loop i=6;12;24
How can I do that?
Best rega
15 matches
Mail list logo