Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: encode command

From   Nick Cox <>
Subject   Re: st: encode command
Date   Thu, 11 Oct 2012 13:58:59 +0100

list country_1, nolabel

On Thu, Oct 11, 2012 at 1:49 PM,  <> wrote:

> In the dataset I am using the names assigned to different countries are strings. My variable name is "country"
> I use the command  "encode country, gen(country_1)" in order to transform the string into numbers
> But still country_1 shows as a name and not a number. What if I would to visualize countr_1 as a column of numbers in the dataset?
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index