Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: reshape- large datasets


From   Jason DeBacker <[email protected]>
To   [email protected]
Subject   Re: st: reshape- large datasets
Date   Wed, 9 Nov 2005 21:36:10 -0600

Sorry about that- it was a typo. Those are not my variable name, I was just using something simple and an example that all could see. Thanks for pointing that out.

I was just trying to give an example where the variable names are in the dataset in a different order than the stub names are listed.

Thanks,
Jason

On Nov 9, 2005, at 8:39 PM, SamL wrote:


Was that a typo?  You wrote:

has the variables, from left to right, inc80 inc81 in82 ue80 ue81 ue82
is it necessary that my command reads: "rehape long inc ue, ..." and
not "reshape long ue inc, ..." ?
Note that in your list of variables in the dataset you include:

inc80
inc81
in82

but in the reshape command you refer to:

reshape long ue inc,

I assume the type is only in the e-mail message, but it is such a small
thing that sometimes only someone with fresh eyes can see it.  Might
that typo be the problem?

Sam

On Wed, 9 Nov 2005, Jason DeBacker wrote:

Hi all,
I am having trouble reshaping a dataset with many variables. I am
trying to reshape from wide to long. My wide dataset has 8432
variables. 337 of these variables are repeated in 25 years. So I
would like to make a long dataset with 344 variables.

The error is that after listing what the j values are (the years in the
dataset), Stata reports that it can't find my variables, although I can
see that the variable it reports being unable to find is in the dataset
in the data editor window.

Is there any limit to the stub names one can use (I'm using Stata/SE
9)? What else could be the cause of this error? Is it necessary that I
list my stub names in the same order they appear when looking at the
dataset? E.g. in the "help reshape" example, if I have a dataset that
has the variables, from left to right, inc80 inc81 in82 ue80 ue81 ue82
is it necessary that my command reads: "rehape long inc ue, ..." and
not "reshape long ue inc, ..." ?

Thanks for your help.

Sincerely,
Jason DeBacker

*
* 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/

*
*   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/

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index