4 \title{Define Similarity Matrix}
10 \item{x, y}{a vector or a factor.}
13 \code{weight.taxo} computes a matrix whose entries [i, j] are set to 1
14 if x[i] == x[j], 0 otherwise.
16 \code{weight.taxo2} computes a matrix whose entries [i, j] are set to 1
17 if x[i] == x[j] AND y[i] != y[j], 0 otherwise.
19 The diagonal [i, i] is always set to 0.
21 The returned matrix can be used as a weight matrix in
22 \code{\link{Moran.I}}. \code{x} and \code{y} may be vectors of
25 See further details in \code{vignette("MoranI")}.
28 a square numeric matrix.
30 \author{Emmanuel Paradis \email{Emmanuel.Paradis@mpl.ird.fr}}
32 \code{\link{Moran.I}}, \code{\link{correlogram.formula}}