Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: log to the base 2


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: log to the base 2
Date   Tue, 17 Oct 2006 12:55:31 -0500

At 11:41 AM 10/17/2006, Raphael Fraser wrote:
I have been trying to find a function that can calculate the log of a
number to base 2. I can't find one. Am I missing something here or am
I not searching hard enough? Can any one help?

I see log to base 10 and log to base e but what happen to the other bases?
My high school algebra may be failing me...but can't you do something like this?

. display log(16) / log(2)
4




-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: [email protected]
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index