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: Resolving reshape problem.
From
Carl Severson <[email protected]>
To
[email protected]
Subject
Re: st: Resolving reshape problem.
Date
Sun, 10 Mar 2013 18:43:46 -0600
I would suggest by first taking a close look at the examples on the
help page for reshape. - help reshape -
If that doesn't help you out, a little bit more information about how
your data are structured is necessary for us to help you out.
Carl
On Sun, Mar 10, 2013 at 6:16 PM, Amir Kasaeian <[email protected]> wrote:
> Dear all,
>
>
>
> I have a big problem in dealing with my data set and really need your contribution.
> My data set includes variables such as ID number (subjects), date, gender, and some other clinical measurements like fbs, tc, ha1c and sb.
> Total number of observations are 30000.
> The problem is that I have some repeated measurements for clinical variables but they are listed below each other in the data files with the same ID.
> I should do all my analysis in stata 11. So, data form is "long" in stata that should reshape to "wide" form.
> By "duplicates" commands I found that max number of repeated is 7 in about 2000 observation in total.
> I know I should use the reshape command but I have problem in using i & j. Should I generate a variable before using the command?
> How should I write codes for converting my data?
>
> Can anyone help me to resolve this problem.
> Your contribution be appreciated in advance.
>
> Many thanks.
> Amir
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/