Re: [Gretl-users] type of variable

2017-01-05 Thread Pedro Bação
Thank you very much. It seems to me that this was not available in gretl 1.9.9, am I right? On 5 January 2017 at 02:40, Allin Cottrell wrote: > On Wed, 4 Jan 2017, Pedro Bação wrote: > > Hello, >> Is there a Gretl function will that tell us what is the type of the >> varia

[Gretl-users] type of variable

2017-01-04 Thread Pedro Bação
Hello, Is there a Gretl function will that tell us what is the type of the variable given as argument? If not, is there a way of getting that sort of information in Gretl? Thanks, Pedro Hello,Is there a Gretl function will that tell us what is the type of the variable given as argument? If not, is

[Gretl-users] Gretl 2016c: modtest --white

2016-09-02 Thread Pedro Bação
Hello, To replicate Greene's example 9.3 (heteroskedasticity tests), in Gretl I run the script: open TableF9-1.txt square Income smpl Avgexp>0 --restrict ols Avgexp const Age Income sq_Income Ownrent modtest --white modtest --white-nocross With Gretl 1.9.11, everything goes fine: Gretl manages t

[Gretl-users] gretl 2016a strange crash

2016-03-02 Thread Pedro Bação
Hello, I now detected the following problem. The script below runs in gretl 1.9.11, but will cause gretl 2016a to crash (I am using ubuntu 12.04, gretl 2016a is in a virtualbox). nulldata 10 function series f1(series z) series s=1 loop i=1..1 s[1]=0 endloop return s end fun

Re: [Gretl-users] convert matrix to series

2016-03-01 Thread Pedro Bação
This works fine, thank you very much. Pedro On 1 March 2016 at 19:14, Allin Cottrell wrote: > On Tue, 1 Mar 2016, Sven Schreiber wrote: > > Am 01.03.2016 um 19:44 schrieb Pedro Bação: >> >>> Hello, >>> If I run the script >>> >>> nulld

[Gretl-users] convert matrix to series

2016-03-01 Thread Pedro Bação
Hello, If I run the script nulldata 10 smpl 6 10 series y=t matrix my=y smpl 1 5 series yy=my print yy in gretl 1.9.11 I get gretl version 1.9.11 Current session: 2016-03-01 18:35 ? nulldata 10 periodicity: 1, maxobs: 10 observations range: 1-10 ? smpl 6 10 Full data range: 1 - 10 (n = 10) Curre

Re: [Gretl-users] Holt-Winters package

2015-09-28 Thread Pedro Bação
Some time ago I came across a similar problem when using this function for a class. At the time I made a note to myself saying that the problem was in the definition of lobs, which I changed to: scalar lobs=lastobs(y) I hope this helps On 28 September 2015 at 15:56, Ignacio Diaz-Emparanza wrote

Re: [Gretl-users] forecasting with exponential smoothing

2012-10-17 Thread Pedro Bação
perhaps this will do it: smpl 1 20 series x=movavg(y,0.5) # change the parameter 0.5 smpl 21 25 series f=x[20] matrix f_stats=fcstats(y,f) f_stats smpl full where y is the series to forecast, f has the forecasts, x is the smoothed series and f_stats is the matrix with the forecast statistics. You