Log-linear analyses with metric and non-metric data: an application to spatial data