Statalist The Stata Listserver


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

Re: st: RE: RE: Re: manipulating matrix elements


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: Re: manipulating matrix elements
Date   Wed, 29 Mar 2006 19:51:58 +0100 (BST)

Steve:
In Nick's program replace the line 
H = sum(X :* ln(X))    
with
H = sum(X :* ln(X))  + ln(rows(X)*cols(X))
HTH,
Maarten

--- Steve Vaisey <[email protected]> wrote:
> One further question though.  In the program you wrote, Nick, the 
> entropy calculation isn't standardized.  How could it be modified to add 
> ln(number of cells) to the final value?


-----------------------------------------
between 1/2/2006 and 31/3/2006 I will be
visiting the UCLA, during this time the
best way to reach me is by email

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


		
___________________________________________________________ 
Yahoo! Photos � NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com
*
*   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