JosiahParry / sfdep

A tidy interface for spatial dependence
https://sfdep.josiahparry.com/
GNU General Public License v3.0
121 stars 5 forks source link

Create error for local G* if self included is missing #16

Open JosiahParry opened 2 years ago

JosiahParry commented 2 years ago

When the self isnt included it is added and weights are recalculated. It makes the assumption of queen weights. This isn't fair. Instead, it should error out and inform the user that self.included is missing and that it should be added with included_self(nb) and then calculate weights

https://github.com/JosiahParry/sfdep/blob/91b4e193248b537fbe124a76d0b15cc4628edd46/R/localG-star.R#L25

opelolo commented 1 year ago

Hello @JosiahParry please will you kindly assign this to me as well? I'd like to try it if it's still available. Thank you