Skip to content

ML estimate of neighbors radius

2 messages · Gregory Macfarlane, Roger Bivand

#
On Thu, 13 Dec 2012, Gregory Macfarlane wrote:

            
Yes, all of the components are present. See ?do_ldet in spdep. Also note 
that log(det()) will underflow as det() approaches zero. Do also note that 
W should be sparse - see the same help page and the code of the setup 
functions for insight. You certainly do not want to be handling dense 
matrices. Note that by endogenising W jointly, you make life very hard for 
yourself - you could take a coarse grid of radius values instead and 
optimize rho and beta for fixed radius, which would run very much faster. 
If you change W at each pass, none of the available methods for speeding 
up the logdet will benifit from running the setup function only once - you 
need now to set up the framework, such as solving the eigenproblem, each 
time. Probably "Matrix_J" will work best in your current setting.

Hope this helps,

Roger