Bookmark and Share

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


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

Re: st: Encode string variables without following the default alphanumeric ordering


From   Adama Konseiga <[email protected]>
To   [email protected]
Subject   Re: st: Encode string variables without following the default alphanumeric ordering
Date   Mon, 9 Sep 2013 15:57:33 -0400

Thank you Joe and Nick for your help.

1- Joe: Your suggestion was perfect and it solves my problem. The
variable looks indeed as follow:

string_activity: Park excursion     |
                               |      Freq.     Percent        Cum.
------------------------------------+-----------------------------------
                                    |        129       14.04       14.04
0 - Activity not interesting at all |         44        4.79       18.82
                                  1 |          8        0.87       19.70
     10 - Very interesting activity |        119       12.95       32.64
                                  2 |         25        2.72       35.36
                                  3 |         28        3.05       38.41
                                  4 |         33        3.59       42.00
                                  5 |        109       11.86       53.86
                                  6 |         79        8.60       62.46
                                  7 |        129       14.04       76.50
                                  8 |        134       14.58       91.08
                                  9 |         82        8.92      100.00
------------------------------------+-----------------------------------
                              Total |        919      100.00

2- Nick: Thanks for your comments as well as the following resource
that was quite helpful
(http://ageconsearch.umn.edu/bitstream/116018/2/sjart_pr0006.pdf)

Best regards

-- 
Adama Konseiga
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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