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

st: Re: Data manipulation


From   "Jan Pettersson" <[email protected]>
To   <[email protected]>
Subject   st: Re: Data manipulation
Date   Thu, 25 Mar 2004 18:24:56 +0100

I do not know if this is helpful to you at all. However, since
e.g. -postfile- does not allow strings, I am using an id-variable for
countries, and thereafter merge the original countylist (after postclose). I
am sure there is a better way, but it works...
/Jan

----- Original Message ----- 
From: <[email protected]>
To: <[email protected]>
Sent: Thursday, March 25, 2004 6:14 PM
Subject: st: Data manipulation


> I am trying to manipulate my data in the following way: after stacking my
data
> (and losing the data in memory), I am trying to recover the country name.
So
> anytime the stack variable is 1 in the dataset, I want to input a string
into
> another variable called "country", when the stack variable is 2 in the
dataset,
> I want to input a different string in the "country" variable.
>
> Any help would be greatly appreciated.
>
>
>
>
>
>
> *
> *   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