Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: problem in the preparation of my dataset to run a conditional logit model


From   Isabelle.Roux@ehess.fr
To   statalist@hsphsun2.harvard.edu
Subject   st: problem in the preparation of my dataset to run a conditional logit model
Date   Tue, 10 Mar 2009 12:04:21 +0100 (CET)

Hello,

I have a dataset whose beginning is this one:

siren	country    	tax
17251067	Spain	         .35
36320950	Czech Republic	.31
45750817	Tunisia	          .33

"Country" is the investment location choice  of firms called "siren". Tax
is the statutory corporate tax rate of the country.
(There are other firms' and countries' characteristics that I did'nt
indicate)

I would like to shift my dataset like that:

siren	country             tax   choice
17251067 	Czech Republic	  .31      0
17251067 Spain               .35      1
17251067 Tunisia             .33      0
36320950	Czech Republic	  .31      1
36320950	Spain                .35     0
36320950	Tunisia              .33     0
45750817	 Czech Republic      .31     0
45750817	Spain                .35     0
45750817	Tunisia	            .33     1


With this new dataset I aimed at writing to stata:
****
clogit choice country tax, group(siren)
****
The problem is that I don't know how to transform my dataset, and I don't
find anything on the Internet. Could someone indicate me what kind of
command I can deal with?


Thank you very much for help

Isabelle


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index