Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: long to wide conversion

From   Nick Cox <>
To   "''" <>
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. 


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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index