sfdep
sfdep copied to clipboard
weights transformations to binary
https://geographicdata.science/book/notebooks/06_spatial_autocorrelation.html#binary-case-join-counts
@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?
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.