Analysing binary lattice data with the nearest-neighbor property