spatialstatisticsupna / bigDM

R package for scalable Bayesian disease mapping models for high-dimensional data
13 stars 4 forks source link

changes to `nb` objects and use of `spdep::n.comp.nb` #6

Open rsbivand opened 2 weeks ago

rsbivand commented 2 weeks ago

In https://github.com/r-spatial/spdep/issues/160 and https://github.com/r-spatial/spdep/pull/161, changes are made to the use of n.comp.nb. It seems now more important to move checks of the possible existence of disjoint subgraphs to the creation and modification of nb neighbour objects, adding these to the nb object at creation or modification in spdep. This means that separate checking may be carried out on the "ncomp" attribute of an nb object from spdep version >= 1.3-6 (branch n_comp until https://github.com/r-spatial/spdep/pull/161 is merged).

bigDM uses these facilities in: man/connect_subgraphs.Rd and R/connect_subgraphs.R, sometimes multiple times, so for larger and/or denser neighbour objects will benefit from the upcoming changes.

aritz-adin commented 1 week ago

bigDM version 0.5.5 has been released to ensure compatibility with changes made in spdep version 1.3.6 #6