Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: long to wide conversion
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: long to wide conversion
Date
Thu, 7 Oct 2010 13:39:12 +0100
In statistics it is usually true that David Cox's solution is more sensible.
Nick
[email protected]
Ada Ma
Subject: Re: st: long to wide conversion
Ooops sorry correction:
sort id collect_date order_type, stable
by id collect_date order_type: gen seq=_n
reshape drug_code drug_result, i(id collect_date order_type) j(seq)
David Cox's solution might be more sensible, depending on what you wanted to do.
*
* 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/