Function to get the powerset
by Henrique Andrade
Dear Gretl Community,
I really stuck trying to define a function that gives a power set of a
set. Suppose I have a set S:
S = {"A", "B", "C"}
The associated power set, P(S), is:
P(S) = {{ }, {"A"}, {"B"}, {"C"}, {"A", "B"}, {"A", "C"}, {"B", "C"},
{"A", "B", "C"}}
All that I can think by now (shame on me!) is this:
strings S = defarray("A", "B", "C")
scalar P_S_len = 2^nelem(S) # the size of the power set
strings P_S = array(P_S_len) # an array with 8 spaces.
Does anyone have any ideas?
Best,
Henrique Andrade
6 years, 3 months
Nonlinear Time Series
by Agustin Alonso
Dear Sirs:
During the past 2 years I have not used Gretl, because of that, I would like
to know if the package has now the facilities for studing nonlinear time
series.
Thanking you for your attention, I am
Sincerely yours
Agustin Alonso
Prof. of Econometrics
Real Centro Universitario "Escorial-Maria Cristina"
San Lorenzo de El Escorial(Madrid) Spain
7 years, 12 months
Gnuplot 5.x nicely supports dashed + monochrome lines now
by Artur Tarassow
Dear all,
in the past I struggled really often with gnuplot when trying to plot
dashed and/or monochrome lines. However, this has changed since gnuplot
5.x. Here is a simple illustration for all (which also acts as a
personal reminder for me!):
<hansl>
clear
set echo off
set messages off
open denmark.gdt --quiet
list Lplot = LRM LRY
plot Lplot
options with-lines time-series
literal set for [i=1:5] linetype i dashtype i
literal set mono
end plot --output=display
</hansl>
Enjoy!
Artur
8 years, 2 months
R^2 for FE-panel and DW-Statistics
by Artur T.
Dear all,
is there any (implemented) way to:
A) Obtain both the within R^2 after a FE-panel estimation? Currently
$rsq only accesses the LSDV R^2 (which is off less importance in my
view). Maybe one could add the accessor $wrsq.
B) Can one obtain the Durbin-Watson test statistics (which is reported
anyway) using a build-in accessor? I had a look for it but couldn't find
anything. However, $rho works fine, and $dwpval also works but takes
quite a while for a medium-dimension micro panel.
Best,
Artur
8 years, 2 months
MA Term in Structural Equation
by Ricardo Gonçalves da Silva
Hi,
I'm estimating a demand/supply model using the system option of GRETL. I
would like to know if is possibel to insert an MA (Moving Average) term in
one of my equation. If yes, how I should proceed?
Thanks in advance,
--
*Ricardo Gonçalves Silva*
*Consultor*
*STEPWISE*
*Inteligência Estatística e Apoio à Decisão*
Rua XV de Novembro, 2.190 - Conj. 06
São Carlos, SP - 13.560-240
Office: +55 (16) 3419.9800 <%2B55%20%2816%29%203419.9800>
www.stepwise.com.br
8 years, 2 months
Question regarding the HIP function
by Juehui Shi
Hello Prof. Lucchetti and Prof. Pigini,
After estimating a ivprobit model with Hessian parameter covariance matrix,
I got this message on the top of the results "Brrr! Halving params". The
results are exactly the same in Stata. Is this something I need to be
concerned with? What does it mean? Thanks.
Best regards,
Juehui Shi (Richard)
8 years, 2 months
Adding a time stamp to the "function packages on server GUI"
by Artur T.
Dear all,
it is good to see that the number of function packages on the gretl
server is increasing!
>From time to time I have a look on the package list using the GUI. So
far some information on the package name, the author(s) and a brief
summary are provided. However, I think it would be helpful to have
another column entry adding some information about the date when the
package was added or updated. Then one could easily see which of the
numerous packages was added or changed lastly. In principle the
information is available as it is already reported on the homepage.
URL: http://ricardo.ecn.wfu.edu/gretl/cgi-bin/gretldata.cgi?opt=SHOW_FUNCS
What do you think?
Best,
Artur
8 years, 3 months
Re: [Gretl-users] Version 2016d - git
by George Matysiak
Aha, the problem returns. I fired-up Gretl and only the POE 4th Ed tab was
present in the Sample file. The others have all gone missing again. I don’t
know if it’s a 2016d problem or something at my end. Sorry...
*"In God we trust, all others bring data."*
8 years, 3 months
Sorting and colnames
by guido giaume
Dear Allin and Sven
Allin first aswer seems to be the solution I was looking for.
I will keep infor##SELECTION_END##med.
Thanks a lot.
Guido
8 years, 3 months