sfdep icon indicating copy to clipboard operation
sfdep copied to clipboard

weights transformations to binary

Open JosiahParry opened this issue 2 years ago • 2 comments

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

JosiahParry avatar Jun 09 '22 12:06 JosiahParry

@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?

gadouaka avatar Jun 28 '23 23:06 gadouaka

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.

JosiahParry avatar Jun 29 '23 00:06 JosiahParry