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

Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW (personal):
WWW (department):
* For searches and help try:

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