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

st: RE: inbase & inten request


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: inbase & inten request
Date   Fri, 18 Jun 2004 10:44:13 +0100

. findit egen base 

points to -egen- functions -base()- and 
-decimal()- within the package -egenmore- 
on SSC. 

They are not as general as you may wish 
but they are available. 

Nick 
n.j.cox@durham.ac.uk 

Kaleb Michaud
 
> These are great programs for quick conversion between decimal based 
> numbers, but are limited in only being able to do one at a time.
> 
> Has anyone created an egen function for these programs?
> If not, it would be nice if Stata could incorporate these into new 
> functions.  Something like:
> 
> gen newvar = inbase(x, b)
> 
> gen xb2 = inbase(x,2)
> 
> where x is numeric expression and 2 or b is the new base 
> expression and so 
> forth.  Being able to change the base by observation is also handy.
> 
> Just one to add to the request list for an update or Vers.9.  :)
> 
> ( OR someone with spare time could probably do this in a few 
> hours for egen.)

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