Statalist


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

Re: st: reshape error: "quarter contains all missing values" ?


From   Philip Ryan <philip.ryan@adelaide.edu.au>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: reshape error: "quarter contains all missing values" ?
Date   Wed, 22 Aug 2007 11:34:05 +0930

sacrificial line.


try:

reshape long val, i(ISO) j(quarter, string)

see -help reshape-

HTH

Phil



At 10:20 AM 22/08/2007, you wrote:
Hi,

I have a straightforward data file that I want to convert into
something appropriate for a panel. An excerpt:

ISO     valq1_1984      valq2_1984      valq3_1984
AFG     0       0       2
ALB             0       0       4
DZA     4       5       2

Variables types are str and int, unsurprisingly. All I wanted to do was:

reshape long val, i(ISO) j(quarter)

and I get the error "quarter contains all missing values" Huh? I
think I've done this a thousand times already and never got this
error. I suspect STATA doesn't like the variable names for the
quarters, because v2 v3 v4 works fine. What can I do to avoid this
problem?

--Mark

Mark S. Manger, PhD
Assistant Professor
Department of Political Science
McGill University
855 Sherbrooke Street West
Montréal, QC H3A 2T7
mark.manger@mcgill.ca
Phone 514-398-8971
Fax 514-398-1770


*
*   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/
Philip Ryan
Professor,
Discipline of Public Health

Director, Data Management & Analysis Centre

Associate Dean (IT)
Faculty of Health Sciences

postal address:
Discipline of Public Health
Mail Drop 511
University of Adelaide 5005
South Australia

location:
Level 6, Room 6-18
Bice Building
Royal Adelaide Hospital
North Terrace
Adelaide

tel +61 8 8303 3570
fax +61 8 8223 4075
http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.

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