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: Reshape problem
From 
 
Olivia Bacha <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: Reshape problem 
Date 
 
Wed, 22 Aug 2012 19:45:23 +0100 
It is not much clear to me what you want to do. If you just want to
transpose your data try
xpose, clear
Regards,
Olivia
2012/8/22 Dorothy Bridges <[email protected]>:
> You could try:
>
> reshape long m, i(variables) j(month)
> reshape wide m, i(month) j(variables, string)
>
> You could also look into xpose and sxpose.
>
> On Wed, Aug 22, 2012 at 11:25 AM, Pedro Nakashima
> <[email protected]> wrote:
>> Dear statalisters
>>
>> I'm using Stata 12
>>
>> I'm trying to put a data in the form:
>>
>> input mAug_99 mSep_99 mOct_99 str6 variables
>> 1 3 5 v1
>> 2 4 6 v11
>> end
>>
>> into other like:
>>
>> input v1 v11 month
>> 1 2 Aug_99
>> 3 4 Sep_99
>> 5 6 Oct_99
>> end
>>
>> I tryied the command
>>
>> reshape long m, i(variables) j(month)
>>
>> but it didn't create the variables v1 and v11, which I wanted
>>
>> Thanks for any help
>>
>> Best,
>> Pedro.
>> *
>> *   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/
> *
> *   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/
*
*   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/