Re: [Gretl-users] operate on all variables (off-topic :)
by Hélio Guilherme
On Wed, Nov 18, 2009 at 6:12 AM, Santiago Afonso
<santiago.afonso(a)gmail.com>wrote:
> Hello. I'm new to gretl and I'm trying to create a simple script that will,
> for instance, seasonally adjust all variables. And I've run into troubles.
> So...
> 1. how do I generate variable *variable names* to genr? for instance, I
> want to call each detrended variable "sa_" & the original variable name
> 2. how do I pass the parameter to deseas()? deseas(gdp) works fine, but
> deseas(varname(4)) doesn't (assuming varname(4)="gdp", varname returns a
> string and deseas doesn't work that way. I also tried looping through a list
> of all the variables, but the same error of erroneous argument type is
> brought up by deseas().
>
> Thanks!!
> SA
>
> _______________________________________________
> Gretl-users mailing list
> Gretl-users(a)lists.wfu.edu
> http://lists.wfu.edu/mailman/listinfo/gretl-users
>
Is this a case of double personality? First time in this list :D
Deja Vu?
see here a similar question:
fromPatricio Cuarón <patriciocuaron(a)gmail.com>reply-toGretl list <
gretl-users(a)lists.wfu.edu>
togretl-users(a)lists.wfu.edu
dateWed, Nov 18, 2009 at 4:54 PMsubject[Gretl-users] operate on all
variablesmailing listgretl-users.lists.wfu.edu Filter messages from this
mailing listmailed-bylists.wfu.eduunsubscribeUnsubscribe from this
mailing-list
hide details 4:54 PM (21 hours ago)
Hello. I'm new to gretl and I'm trying to create a simple script that will,
for instance, seasonally adjust all variables. And I've run into troubles.
So...
1. how do I generate variable *variable names* to genr? for instance, I want
to call each detrended variable "sa_" & the original variable name
2. how do I pass the parameter to deseas()? deseas(gdp) works fine, but
deseas(varname(4)) doesn't (assuming varname(4)="gdp", varname returns a
string and deseas doesn't work that way. I also tried looping through a list
of all the variables, but the same error of erroneous argument type is
brought up by deseas().
Thanks!!
PC
15 years, 1 month
Asymmetric Cointegration Test with TAR
by Thomas Volscho
Has anyone written a script for doing a "grid research" for determining the threshold value for a TAR to be used as a test of asymmetric cointegration? Enders has something in his RATS programming guide and I was wondering if anyone has written anything for GRETL.
Thanks in advance!
Tom
Thomas W. Volscho
Assistant Professor of Sociology
Department of Sociology, Anthropology, and Social Work
City University of New York-College of Staten Island
2800 Victory Blvd., Bldg. 4S, Room 210
Staten Island, NY 10314
phone: 718-982-3774
email: thomas.volscho(a)csi.cuny.edu
web: http://scholar.library.csi.cuny.edu/~volschot
Think green before you print this email.
15 years, 1 month
Asymmetric Cointegration tests
by Thomas Volscho
Dear List,
Has anyone written a script that would determine the threshold for an asymmetric cointegration test?
Thomas W. Volscho
Assistant Professor of Sociology
Department of Sociology, Anthropology, and Social Work
City University of New York-College of Staten Island
2800 Victory Blvd., Bldg. 4S, Room 210
Staten Island, NY 10314
phone: 718-982-3774
email: thomas.volscho(a)csi.cuny.edu
web: http://scholar.library.csi.cuny.edu/~volschot
Think green before you print this email.
15 years, 1 month
about distribution function display
by Dorian Litvine
Dear Gretl users,
Do you know how to describe the « estimated logit distribution » of a
binary variable (dependent)? which means presenting the distribution
function 1-F(X) of the probability of observing a given value of the
dependent binary variable according to the values of a polynomial
variable (independent) ?
Thank you very much.
--
Dorian LITVINE
Docteur en Sciences Economiques
Chercheur (associé) en Economie de l'Energie et de l'Environnement
Research Associate in Economics (PhD), specialized in
Energy/Environment, Green
Electricity, and pro-ecological decisions
Laboratory LASER-CREDEN (Energy Economics Institute)
Faculté des Sciences Economiques CS 79606
34960 Montpellier Cedex 2 -- FRANCE
Tel : (office) 00 33 (0)4 67 15 83 32
(mobile) 00 33 (0)6 89 15 15 74
E-mail : dorian.litvine(a)univ-montp1.fr / dorian.litvine(a)gmail.com
CREDEN website: www.creden.univ-montp1.fr
15 years, 1 month
operate on all variables
by Santiago Afonso
Hello. I'm new to gretl and I'm trying to create a simple script that will,
for instance, seasonally adjust all variables. And I've run into troubles.
So...
1. how do I generate variable *variable names* to genr? for instance, I want
to call each detrended variable "sa_" & the original variable name
2. how do I pass the parameter to deseas()? deseas(gdp) works fine, but
deseas(varname(4)) doesn't (assuming varname(4)="gdp", varname returns a
string and deseas doesn't work that way. I also tried looping through a list
of all the variables, but the same error of erroneous argument type is
brought up by deseas().
Thanks!!
SA
15 years, 1 month
randgen question
by Talha Yalta
I am trying to perpare a ML tutorial where there are T balls in a bag
with a ratio of P=0.75 black balls and there will be 250 independent
trials where 0<X<10 randomly chosen balls from the bag will show Y
blacks.
I create a new data set with 250 observations and create X with genr X
= floor(randgen(u,0,11)
After this, however, the command genr Y = randgen(b,0.75,X) does not work.
Any suggestions?
Also a few bugs/problems that I have discovered along the way:
1)- Creating a binomial random does not work from the GUI. After
creating a cross-sectional 50, Add --> Random variable and selecting
binomial, I enter 0.5 10 and xx in the three boxes and clicking OK
gives an empty error dialog box.
2)- I open the scalars window and if I first click on the name column,
enter something and then click on the value column (or an empty pert
of the window) I get the error: 'cc' -- no numeric conversion
performed!
3)- If I do the above twice three times etc., the error message is
also repeated twice, three times etc. (as rows within a single error
window).
4)- If I keep pressing the add button, the scalars window will be
filled with epmty rows of empty scalars with no x buttons to erase
them.
5)- With the first row being empty, if I enter a value in the second
row and click on its name cell, there is an error message in the
console:
*** gretl_scalar_add: there's already a '' at level 0 (1,79769313486232e+308)
6)- Because the scalars window is now modal in the cvs, everything is
frozen when it remains open. I cannot even quit gretl without first
closing the scalars window. It is as if the program has crashed.
Similarly, after running a ml estimation from the GUI, the scalars
window is opened automatically but since everything is frozen, it is
not possible to scroll down the model estimation window even. I really
hope the syncronization code solving these problems will be added
soon.
Best regards
Talha
--
“Remember not only to say the right thing in the right place, but far
more difficult still, to leave unsaid the wrong thing at the tempting
moment.” - Benjamin Franklin (1706-1790)
--
15 years, 1 month
dummy variables
by Data Analytics Corp.
Hi,
I have two question on how to create dummy variables. Suppose...
1. I have a time series of annual data, say from 1970 to 2000. How
do I create a dummy for the period 1975-1980 (1 for this period, 0
otherwise)?
2. I have cross-sectional data by states. How do I create a dummy
for the southern region where I know the states in that region?
Thanks,
Walt
--
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
________________________
(V) 609-936-8999
(F) 609-936-3733
walt(a)dataanalyticscorp.com
www.dataanalyticscorp.com
15 years, 1 month
Tests with OLS work for Panel data too?
by Bruno Thiago Tomio
Dear readers,
Do the tests ran with an OLS model wok for Panel data? How do I know if my
model with panel data don't have multicolinearity problems, etc?
Thank you in advance.
Bruno Thiago Tomio
15 years, 1 month
Problem with Gretl Session
by Henrique
Dear Gretl Community,
When I change a variable attribute (Variable -> Edit attributes) I'm not
able to save this modification in my session file (File -> Session files -
Save session). The problem occurs even if I change the name of the variable.
Best,
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge
15 years, 1 month
Problem with graphs
by Henrique
Dear Gretl community,
When I try to plot a graph (View -> Graph specified vars -> Time series
plot) gretl shows me the following error message:
dyld: Library not loaded: /usr/local/lib/libreadline.5.2.dylib
Referenced from: /Applications/Gretl.app/Contents/Resources/bin/gnuplot
Reason: image not found
I'm using Gretl (snapshot 2009-11-04) on Mac (Snow Leopard). With the
snapshot 2009-10-31 this problem doesn't occur.
Best,
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge
15 years, 1 month