Re: Changing base in MN logit,
Thanks Allin.
Your suggestion, as always, worked just fine.
Maybe something for the "Cheat sheet"?
Lars
Lars Palsson Syll
Professor of Civics
Malmo University
Sweden
>> <gretl-users-request(a)lists.wfu.edu> 09-10-12 18:05
>>>
Send Gretl-users mailing list submissions to
gretl-users(a)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
You can reach the person managing the list at
gretl-users-owner(a)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. Re: Gretl-users Digest, Vol 33, Issue 12 ( Lars P?lsson-Syll )
2. Multinomial logit (wasRe: Gretl-users Digest, Vol 33, Issue
12) (Allin Cottrell)
----------------------------------------------------------------------
Message: 1
Date: Sun, 11 Oct 2009 22:18:22 +0200
From: " Lars P?lsson-Syll " <Lars.Palsson-Syll(a)mah.se>
Subject: Re: [Gretl-users] Gretl-users Digest, Vol 33, Issue 12
To: <gretl-users(a)lists.wfu.edu>
Message-ID: <4AD259AE020000F00008215B(a)biggs.mah.se>
Content-Type: text/plain; charset=US-ASCII
Hi,
I wonder if there is a possibility, somehow, in gretl to choose which alternative should
count as the base category when
running a multinomial logit model. To me it seems as if gretl automatically always chooses
the FIRST alternative. [In stata
one has the command baseoutcome() to enable you to choose for yourself.]
Best regards,
Lars
Lars Palsson Syll
Professor of Civics
Malmo University
Sweden
>> <gretl-users-request(a)lists.wfu.edu> 09-10-09 18:04
>>>
Send Gretl-users mailing list submissions to
gretl-users(a)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
You can reach the person managing the list at
gretl-users-owner(a)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. Re: descriptive labels (Shaianne Osterreich)
----------------------------------------------------------------------
Message: 1
Date: Thu, 8 Oct 2009 16:55:57 -0400
From: Shaianne Osterreich <shaianneo(a)gmail.com>
Subject: Re: [Gretl-users] descriptive labels
To: Gretl list <gretl-users(a)lists.wfu.edu>
Message-ID:
<3b32039f0910081355n45882f7fqc0c351423b369685(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi everyone.
Thank you all for your helpful comments. I got Allin's trick to work. Here's
a summary of what I did.
1. Open mydata
store mydata --traditional
2. I had an excel file with the variables and labels in two columns. Save
as a text file. Make sure that gretl has read the variables exactly the same
way you have them in the file. (My data file/ and description file had extra
00s which gretl wisely dropped - but this made it seem like the variables
were not the same). Open in Word and save as a text file again. This
provides a more extensive format check to make sure the spaces are spaces
(and not tabs) etc and hide the txt extension, adding .lbl. Save in the
same user folder as the data file.
3. Open mydata.dat again. This time it opens with all the variables.
So basically, Allin, it's what you said. I just had to be more careful with
what the final text file actually looked like.
Henrique - For future purposes I am still working on importing a script from
a text file with an .inp extension. I got an error which read 'error in
byte compatibility'. Not sure what that is about. I will try again.
Thanks!!
Shaianne
On Thu, Oct 8, 2009 at 5:33 AM, yinung at Gmail <yinung.cycu(a)gmail.com>wrote:
Dear all,
I tried Allin's solution by command line in Gretl 1.8.4 console under
Windows XP.
It did work to generate 3 files, e.g., *.dat, *.hdr, and *.lbl.
After some experiments, I found that the working file must have at least
_ONE_ variable with a descriptive label. Otherwise, gretl only generate two
files (without *.lbl) so that you are not able to edit the *.lbl by general
text editor thereafter.
It is also confirmed that re-open the *,dat via GUI does not import the
associated descriptive labels defined in *.lbl. You have to re-open the
*.dat file trhough the gretl Console (command line).
good luck
Yi-Nung
2009/10/8 Allin Cottrell <cottrell(a)wfu.edu>
>
> On Wed, 7 Oct 2009, Shaianne Osterreich wrote:
>
> > Thanks for your advice Allin and Henrique.
> >
> > Allin - I've tried your suggestion. When the traditional file
> > is created it does create 2 files - dat and hdr. Then I have
> > saved a plain text file named mydata.lbl (in exactly the format
> > you suggested) in the same user folder with the newly created
> > ones. But, when I re-open mydata.dat it doesn't open with the
> > descriptive labels - it's just the variable names as before. I
> > think gretl isn't reading the text file. Do you have
> > suggestions?
>
>
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users