[Gretl-users] RE: indexes in loops. Example
Arnaud Bervas
abervas at hotmail.com
Thu Sep 7 14:00:36 EDT 2006
The following example is the beginning of a script for computing Fisher stat
repeatedly:
loop for i= 0..10
ols Y const X(0 to -$i)
genr SR$i = $ess
genr DL$i = ($nobs- $i -$ncoeff)
endloop
Then I want to create a loop in order to compute FISHER = (SR(i) - SR(i+1))/
(DL(i)-DL(i+1))/(SR(i+1)/D(i+1))
I tried different tricks, but couldn't find out any solution yet
More information about the Gretl-users
mailing list