Fit a centered autologistic model using maximum pseudolikelihood estimation or MCMC for Bayesian inference.
Useful links