From | David Kantor <[email protected]> |
To | [email protected] |
Subject | Re: st: Assigning prime numbers |
Date | Thu, 12 May 2005 13:38:21 -0400 |
At 05:27 PM 5/12/2005 +0100, Steve ([email protected] ) wrote:
I couldn't resist the temptation to try this -- to revisit a program that I did as a teenager, writing in Stata this time.Hi, I have a string variable which can take about 500 different values. I would like to assign a different prime number to each value of this string so that I get: String Prime A01 2 A02 3 A03 5 B01 7 C01 11 D02 13 F03 17 Etc Any suggestions would be most welcome! Thanks. Steve
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |