Bookmark and Share

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 with prefix using a varlist


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Reshape with prefix using a varlist
Date   Tue, 15 Mar 2011 00:24:42 +0000

Please tell us directly more about your dataset and why you think
-reshape wide- is a good idea. From what you say it just make most
analyses more difficult. Also, how many variables will you end up
with?

Nick

On Tue, Mar 15, 2011 at 12:13 AM, Richard Murphy
<[email protected]> wrote:
> Hi all,
> I want to reshape long data to wide, putting the 'j' string variable
> at the begging of the stub.
> This would be fine if I have a limited number of variables as i can
> just use the @ function.
> reshape wide @var1 @var2 @var3 @var4, i(instit year) j(LEVEL) string
>
> But this does not work if i use the variable list functionality of
> reshape. I would like to know if their is an easier way of doing this,
> rather than typing in all 244 variables preceded by @.
> reshape wide @var1-@var244, i(instit year) j(LEVEL) string
>
*
*   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/


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