Statalist The Stata Listserver


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

st: nested logit


From   "azam alavi" <[email protected]>
To   [email protected]
Subject   st: nested logit
Date   Sat, 10 Jun 2006 17:27:30 +0430

Hi there,

if we have such a data:
individual_id        job             education          age
1                      doctor            20 year            35
2                      driver             10 year             44
3                      professor        24 year             55
...

how can I make it ready for a nlogit in STATA?
I mean that how I can make 2 more lines(rows) like this in STATA:
individual_id        job             job_id             education          age
1                      doctor         1                       20 year
         35
1                      driver           0                       20
year           35
1                      professor     0                       20 year
       35

2                      doctor         0                       10 year
         44
2                      driver           1                       10year
         44
2                      professor     0                       10 year
       44

3                      doctor         0                       24 year
         55
3                      driver           0                       24
year           55
3                      professor     1                       24 year
       55

Thank you in advance,
Azam Alavi
*
*   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