Cost function estimation--system of equations
by Carlos Elias
Dear All,
It is my first time using Gretl, I love it. I am trying to estimate a cost
function system of equations (Jorgensen 1986). I am imposing restrictions
on the parameters to impose cost exhaustion and homegeneity conditions. I
am using a cross sectional dataset of electric power plants in the US--I am
researching the impact on cost of generation of availability of water and
the selection of cooling systems.
I would really appreciate it if you can look at my Gretl instructions and
tell me if I am making any mistakes--when I ran the model I get no results.
These are the instructions:
**************************************************
system
equation S_Dep l_P_Dep l_P_labor l_Y
equation l_Tot_cost l_P_Dep l_P_labor l_Y sq_l_P_Dep l_Dep_labor l_S_labor
l_Dep_Y l_labor_Y sq_l_Y
end system
restrict
b[1,1] = b[2,2]
b[1,2] = b[2,5]
b[1,3] = b[2,6]
b[1,4] = b[2,8]
b[2,2] + b[2,3] = 1
b[2,8] + b[2,9] = 0
b[2,5] + b[2,6] = 0
b[2,6] + b[2,7] = 0
end restrict
estimate
********************************************************************************************
Cheers and thanks,
Carlos
13 years, 11 months
Exact method of likelyhood
by Александр Рогальский
Good afternoon.
I am developing a causal econometric model according to the concept of аuthenticity modeling
Model is as follows:
Y(t)=SUM[a0*Y(t-s)] + SUM[a6*X6,(t-s)] + SUM[a23*X23,(t-s)]
(1->4) (0->2) (0->1)
The right side of this equation has lag dependent varibles, lag independent variables and independent variables.
To estimate parameters I use the exact method of likelyhood.
But the residuals are not normally distributed.
May I use this method to estimate the parameters (or I should use another methods)?
If the residuals are not normal, will be this model suitable for forecasting?
Thanks in advance
Alexander
13 years, 11 months
translation (lost in)
by artur bala
Dear Allin,
Getting through the .po file (I'm testing a new translation), I've
encountered the following entry that sounds a little bit strange (as
long as gretl's menu doesn't offer such an option):
/ Data set is not recognized as a panel.\n
Please use \"Sample/Set frequency, startobs\"./
I checked the po.file in 3 other languages and found an identical
translation of that. What does it stand for?
cheers, :-)
artur
--
*************************************
Artur BALA
Development Economist, Consultant
Phone: +216 24 71 00 80
E-mail: artur.bala.tn(a)gmail.com
skype: artur.bala.tn
*************************************
13 years, 11 months
x12a tramo
by Giancarlo Taroni
In linux mint 64 bit I have troble tu run x12a and tramo by Gretl. In
linux Mint 32 bit all works properly.
Why?
Thanks
Giancarlo Taroni
13 years, 11 months
Correlogram Plot
by Henrique Andrade
Dear Gretl Community,
I’m trying to export my correlograms graphs as Windows meta files (.emf
extension) but I getting a problem with the accented titles of the graphs.
Please, could you take a look at the attached file?
What can I do to fix this?
Thanks in advance,
--
Henrique C. de Andrade
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge
13 years, 11 months
Re: [Gretl-users] if statement error (Re: Gretl-users Digest, Vol 43, Issue 17)
by Hélio Guilherme
Hi David,
(We can use '=' as the comparison operator, but I prefer the '==' C/C++/Java
syntax).
Well, here is the script I tested on latest Windows Snapshot.
text:
scalar state = 13
scalar delta = 0.001
if state==13
delta=.38
elif state==16
delta=.35
elif state==31
delta=.30
elif state==84
delta=.26
else delta=0
endif
printf "%d => %f", state, delta
---
We may have found a bug here:
The statement "*else delta=0*" is not being evaluated! Please test this.
Hélio
On Mon, Aug 16, 2010 at 5:12 PM, david santini <divadsantini(a)yahoo.com>wrote:
> hey, thanks for responding, but I'm still getting the 'error evaluating
> if', even when I replace all '=' with '=='. Any chance you could type the
> basic code exactly how it should look? -david
>
> --- On *Mon, 8/16/10, gretl-users-request(a)lists.wfu.edu <
> gretl-users-request(a)lists.wfu.edu>* wrote:
>
>
> From: gretl-users-request(a)lists.wfu.edu <gretl-users-request(a)lists.wfu.edu
> >
> Subject: Gretl-users Digest, Vol 43, Issue 17
> To: gretl-users(a)lists.wfu.edu
> Date: Monday, August 16, 2010, 12:00 PM
>
> Send Gretl-users mailing list submissions to
> gretl-users(a)lists.wfu.edu<http://mc/compose?to=gretl-users@lists.wfu.edu>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.wfu.edu/mailman/listinfo/gretl-users
> or, via email, send a message with subject or body 'help' to
> gretl-users-request(a)lists.wfu.edu<http://mc/compose?to=gretl-users-request@lists.wfu.edu>
>
> You can reach the person managing the list at
> gretl-users-owner(a)lists.wfu.edu<http://mc/compose?to=gretl-users-owner@lists.wfu.edu>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gretl-users digest..."
>
>
> Today's Topics:
>
> 1. if statement (david santini)
> 2. if statement error (david santini)
> 3. Re: if statement error (H?lio Guilherme)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 15 Aug 2010 21:20:20 -0700 (PDT)
> From: david santini <divadsantini(a)yahoo.com<http://mc/compose?to=divadsantini@yahoo.com>
> >
> Subject: [Gretl-users] if statement
> To: gretl-users(a)lists.wfu.edu<http://mc/compose?to=gretl-users@lists.wfu.edu>
> Message-ID: <886407.82767.qm(a)web53207.mail.re2.yahoo.com<http://mc/compose?to=886407.82767.qm@web53207.mail.re2.yahoo.com>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear Gretl community,
>
> I keep getting errors on my if statements.? The program responds "error
> evaluating if", as if it doesn't recognize the command, yet turns red when i
> type it.?
>
> Here's the code I am using:
>
> if state=13
> ??? delta=.38
> elif state=16
> ??? delta=.35
> elif state=31
> ??? delta=.30
> elif state=84
> ??? delta=.26
> else delta=0
> endif
>
> I've been over the syntax in the user manuals and cannot understand what I
> am doing wrong.? Any insights on this issue are greatly appreciated.?
> Thanks.?
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.wfu.edu/pipermail/gretl-users/attachments/20100815/a7201c59/...
>
> ------------------------------
>
> Message: 2
> Date: Sun, 15 Aug 2010 21:43:10 -0700 (PDT)
> From: david santini <divadsantini(a)yahoo.com<http://mc/compose?to=divadsantini@yahoo.com>
> >
> Subject: [Gretl-users] if statement error
> To: gretl-users(a)lists.wfu.edu<http://mc/compose?to=gretl-users@lists.wfu.edu>
> Message-ID: <666713.29338.qm(a)web53202.mail.re2.yahoo.com<http://mc/compose?to=666713.29338.qm@web53202.mail.re2.yahoo.com>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear Gretl community,
>
> I
> keep getting errors on my if statements.? The program responds "error
> evaluating if", as if it doesn't recognize the command, yet turns red
> when i type it.?
>
> Here's the code I am using:
>
> if state=13
> ??? delta=.38
> elif state=16
> ??? delta=.35
> elif state=31
> ??? delta=.30
> elif state=84
> ??? delta=.26
> else delta=0
> endif
>
> I've been over the syntax in the user manuals and cannot understand what I
> am doing wrong.? Any insights on this issue are greatly appreciated.?
> Thanks.?
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.wfu.edu/pipermail/gretl-users/attachments/20100815/bf0aee57/...
>
> ------------------------------
>
> Message: 3
> Date: Mon, 16 Aug 2010 15:44:44 +0100
> From: H?lio Guilherme <helioxentric(a)gmail.com<http://mc/compose?to=helioxentric@gmail.com>
> >
> Subject: Re: [Gretl-users] if statement error
> To: Gretl list <gretl-users(a)lists.wfu.edu<http://mc/compose?to=gretl-users@lists.wfu.edu>
> >
> Message-ID:
> <AANLkTim7HYiZUbMX1QqAG91CMJL4BiwqMtR+qjp6+HBv(a)mail.gmail.com<http://mc/compose?to=HBv@mail.gmail.com>
> >
> Content-Type: text/plain; charset="utf-8"
>
> Use comparison '==' and not the assignment symbol '=' in the if clause.
>
> On Mon, Aug 16, 2010 at 5:43 AM, david santini <divadsantini(a)yahoo.com<http://mc/compose?to=divadsantini@yahoo.com>
> >wrote:
>
> > Dear Gretl community,
> >
> > I keep getting errors on my if statements. The program responds "error
> > evaluating if", as if it doesn't recognize the command, yet turns red
> when i
> > type it.
> >
> > Here's the code I am using:
> >
> > if state=13
> > delta=.38
> > elif state=16
> > delta=.35
> > elif state=31
> > delta=.30
> > elif state=84
> > delta=.26
> > else delta=0
> > endif
> >
> > I've been over the syntax in the user manuals and cannot understand what
> I
> > am doing wrong. Any insights on this issue are greatly appreciated.
> > Thanks.
> >
> >
> > _______________________________________________
> > Gretl-users mailing list
> > Gretl-users(a)lists.wfu.edu<http://mc/compose?to=Gretl-users@lists.wfu.edu>
> > http://lists.wfu.edu/mailman/listinfo/gretl-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.wfu.edu/pipermail/gretl-users/attachments/20100816/9b820477/...
>
> ------------------------------
>
> _______________________________________________
> Gretl-users mailing list
> Gretl-users(a)lists.wfu.edu <http://mc/compose?to=Gretl-users@lists.wfu.edu>
> http://lists.wfu.edu/mailman/listinfo/gretl-users
>
> End of Gretl-users Digest, Vol 43, Issue 17
> *******************************************
>
>
>
13 years, 11 months
on cusum test
by artur bala
Hi,
I'm trying to do the CUSUM test through separated regressions but the result differs slightly froms gretl's cusum command.
I can't see where the trick is... Any suggestion?
cheers,
artur
null
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
13 years, 11 months
if statement error
by david santini
Dear Gretl community,
I
keep getting errors on my if statements. The program responds "error
evaluating if", as if it doesn't recognize the command, yet turns red
when i type it.
Here's the code I am using:
if state=13
delta=.38
elif state=16
delta=.35
elif state=31
delta=.30
elif state=84
delta=.26
else delta=0
endif
I've been over the syntax in the user manuals and cannot understand what I am doing wrong. Any insights on this issue are greatly appreciated. Thanks.
13 years, 11 months
Data editing questions
by Data Analytics Corp.
Hi,
I have two questions about editing data:
1. How do I delete observations? If I have 100 observations and I
want to delete, say, the last 10, how do I do this?
2. When I imported some data from Excel, the first column in the
spreadsheet had labels, say country names. In Gretl, these labels
appear as observation labels instead on 1, 2, 3 ... I'd like to
edit these labels in Gretl, perhaps to fix a misspelling or if I
add an observation to the dataset to change the observation number
to a more descriptive word or to just change the labels from
numbers to words for all the observations. How can I do this?
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
_____________________________________________________
--
________________________
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
13 years, 11 months
if statement
by david santini
Dear Gretl community,
I keep getting errors on my if statements. The program responds "error evaluating if", as if it doesn't recognize the command, yet turns red when i type it.
Here's the code I am using:
if state=13
delta=.38
elif state=16
delta=.35
elif state=31
delta=.30
elif state=84
delta=.26
else delta=0
endif
I've been over the syntax in the user manuals and cannot understand what I am doing wrong. Any insights on this issue are greatly appreciated. Thanks.
13 years, 11 months