Dear Simari,
try the following short script:
<script>
list stocks = dataset
loop foreach i stocks
    genr r_$i = ($i-$i(-1))/$i(-1)*100
endloop
<\script>
HTH:
Daniel
-----Original Message-----
From: Simari <gnsimari(a)gmail.com>
To: Gretl list <gretl-users(a)lists.wfu.edu>
Date: Sat, 20 Mar 2010 11:34:01 +0100
Subject: [Gretl-users] GRETL: Return Computation
Dear,
anyone knows how to compute the return of all stocks (500) in only one
command?
I have to insert this formula
"(Microsft-Microsoft(-1))/Micorsoft(-1)*100
for 500 different stocks and I would like to know if there's a way to do
that giving only one command.
Thanks,
G. Simari
On Fri, Mar 19, 2010 at 5:54 PM, Allin Cottrell <cottrell(a)wfu.edu> wrote:
 On Fri, 19 Mar 2010, Talha Yalta wrote:
 > After creating a scatter-plot, I go into plot controls, select add
 > line and enter "2*x". Gretl crashes as soon as I select OK or Close.
 Thanks, that's now fixed in CVS and snapshots.
 > Also, I noticed during translation the entry regarding confidence
 > bands. How do I reach this function? Is this available for a regular
 > OLS regression?
 I'm not quite sure what you're asking. You can get a confidence
 band for forecasts from OLS models (as you probably know). What's
 new is a choice of graphical representation of the confidence
 interval for bootstrapped VAR impulse responses.
 Allin Cottrell
 _______________________________________________
 Gretl-users mailing list
 Gretl-users(a)lists.wfu.edu
 
http://lists.wfu.edu/mailman/listinfo/gretl-users