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

st: RE: inbase & inten request

From   "Nick Cox" <[email protected]>
To   <[email protected]>
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. 

[email protected] 

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:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index