Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Another reshape wide question


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Another reshape wide question
Date   Tue, 18 Apr 2006 17:44:26 +0100

You've answered your own question. The answer is No, 
in your circumstances. 

Stata is not being awkward: it just doesn't see that
your proposed -reshape- make sense. 

Perhaps the -reshape- you have in mind does make 
sense, but you are not giving the right specification. 

But speculation is futile here. 

To repeat, you have to give more details on the precise
set-up you have before you will get good and 
precise advice. 

And have you done that reading yet? 

Nick 
n.j.cox@durham.ac.uk 

Amber Katz
 
> Thanks for all the responses to my previous question.  One other one:
> Will Stata let me "reshape" some variables wide and not others (the
> ones that are time invariant and hence missing in observations 2 and 3
> for each individiual)?  When I try to do this, it tells me that those
> variables are not constant for each person.

> On 4/18/06, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> > The short answer is absolutely not. Stata cannot divine
> > your desired -reshape- without information on what variables
> > you want to be reshaped.
> >
> > Please check out the manual entry in detail, then
> >
> > FAQ     . . . . . . . . . . . . . . . . . . . . . . . .  
> Problems with reshape
> >        12/03   I am having problems with the reshape command. Can
> >                you give further guidance?
> >                http://www.stata.com/support/faqs/data/reshape3.html
> >
> > and then (if your problem remains insoluble) report back with
> > more detail on the structure of your variable names.
> >
> > Nick
> > n.j.cox@durham.ac.uk
> >
> > Amber Katz
> >
> > > I'm trying to reshape my data, but have a very large number of
> > > variables which are not necessarily in the same form.  Is 
> there some
> > > way I can execute this command without typing out all the variable
> > > names?
> > >
> > > Also, is there a way I can put a list of variable names 
> into some sort
> > > of "namelist" variable which I can use later?  (i.e. I 
> would just type
> > > "reshape wide <namelist>)  I know that there's some 
> "syntax" command
> > > but don't understand how to use it here.
> >

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index