Statalist


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

[no subject]



sacrificial line.


try:

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

see -help reshape-

HTH

Phil




----Original Message Follows----
From: Mark Manger <mark.manger@mcgill.ca>
Reply-To: statalist@hsphsun2.harvard.edu
To: statalist@hsphsun2.harvard.edu
Subject: st: reshape error: "quarter contains all missing values" ?
Date: Tue, 21 Aug 2007 20:38:05 -0400

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/

_________________________________________________________________
Find a local pizza place, movie theater, and more….then map the best route! 
http://maps.live.com/default.aspx?v=2&ss=yp.bars~yp.pizza~yp.movie%20theater&cp=42.358996~-71.056691&style=r&lvl=13&tilt=-90&dir=0&alt=-1000&scene=950607&encType=1&FORM=MGAC01

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