|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: nested logit
From
"Nick Cox" <[email protected]>
To
<[email protected]>
Subject
st: RE: nested logit
Date
Sat, 10 Jun 2006 16:07:33 +0100
See on-line help on -fillin-, its manual entry [D] fillin
and/or
SJ-5-1 dm0011 . . . . . . . . . . . . . . Stata tip 17: Filling in the gaps
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]
azam alavi
> 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
*
* 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 |