Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: data management for nlogit


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: data management for nlogit
Date   Mon, 27 Feb 2006 18:24:08 -0000

. search fillin

Keyword search

        Keywords:  fillin
          Search:  (1) Official help files, FAQs, Examples, SJs, and STBs

Search of official help files, FAQs, Examples, SJs, and STBs


[D]     fillin  . . . . . . . . . . . . . . . . . . . . Rectangularize dataset
        (help fillin)

SJ-5-1  dm0011  . . . . . . . . . . . . . .  Stata tip 17: Filling in the gaps
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q1/05   SJ 5(1):135--136                                 (no commands)
        tips for using fillin to fill in gaps in a rectangular
        data structure

Nick 
[email protected] 

Raja Chakir
 
> I have a data set that I would like to analyze with a nested 
> logit (nlogit) model. The data set looks like:
> 
> id resto
> 1 A
> 2 A
> 3 B
> 
> I want the get the data that looks like:
> 
> id resto choice
> 1  A         1
> 1  B         0
> 2  A         1
> 2  B         0
> 3  A         0
> 3  B         1

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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