Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[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. 

[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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index