JosiahParry / sfdep

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

weights transformations to binary #25

Open JosiahParry opened 2 years ago

JosiahParry commented 2 years ago

https://geographicdata.science/book/notebooks/06_spatial_autocorrelation.html#binary-case-join-counts

gadouaka commented 1 year ago

@JosiahParry , bonsoir j'ai eu un probleme dans le type de poids spatial; apres exécution des commandes suivantes: W <- nb2mat(nb, style = "B") et model3 <- CARBayesST::ST.CARanova(formula = formula, family = "poisson", data = DISTRICT, W=W, interaction = TRUE, burnin = 20000, n.sample = 220000, thin = 10)

Le message d erreur s"affiche comme suit: Summarising results. Finished in 120.9 seconds. Warning message: In mat2listw(W) : style is M (missing); style should be set to a valid value Comment pourrais je faire dans ce cas?

JosiahParry commented 1 year ago

Merci! @gadouaka desole mon francais est tres mal! alors, je vais repondre en anglais

Can you make a reproducible example? nb2mat() is a function from the spdep package.