]> git.donarmstrong.com Git - ape.git/blob - man/weight.taxo.Rd
various corrections
[ape.git] / man / weight.taxo.Rd
1 \name{weight.taxo}
2 \alias{weight.taxo}
3 \alias{weight.taxo2}
4 \title{Define Similarity Matrix}
5 \usage{
6   weight.taxo(x)
7   weight.taxo2(x, y)
8 }
9 \arguments{
10   \item{x, y}{a vector or a factor.}
11 }
12 \description{
13   \code{weight.taxo} computes a matrix whose entries [i, j] are set to 1
14   if x[i] == x[j], 0 otherwise.
15
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.
18
19   The diagonal [i, i] is always set to 0.
20
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
23   factors.
24
25   See further details in \code{vignette("MoranI")}.
26 }
27 \value{
28   a square numeric matrix.
29 }
30 \author{Emmanuel Paradis}
31 \seealso{
32   \code{\link{Moran.I}}, \code{\link{correlogram.formula}}
33 }
34 \keyword{manip}