sim.pat uses sima to calculate compositional similarity between a focal sampling unit and all units in the data-set and simn to calculate compositional similarity between a focal unit and its surrounding units. Surrounding can be specified as a radius or a ring. Significance can be tested.sim.pat(veg, coord = NULL, dn, presabs = TRUE, test = TRUE,
permutations = 100, ...)sima(veg, presabs = TRUE, d.inc = FALSE, ...)
simn(veg, coord, dn, presabs = TRUE, d.inc = FALSE, ...)
data.frame defining the geographic positions of the sampling units. Should give (in this order) the x- and y-values in UTM or similar coordinates. Defaults to NULL. Triggers also if similarity to neighbours (when it is given) or sim.pat without coordinates or simatest=TRUE, how many permutations of the species matrix should be carried out? Defaults to 100. See details.data.frame with the similarity values calculated between the focal unit and its neighbours (sim2nbs) or all other units in the data-set (sim2all). In case of the first, the two first columns of the data.frame give the number of species on the focal plot (n.spec) and the number of neighbours (nbs) to which similarity was calculated based on the neighbour definition (dn).If test = TRUE the following columns are given in addition:
"*" means similarity value is significantly different from random.sig.prefix = "-") and vice versa (sig.prefix = "+").sim.pat is different as it respects species identities of all included units at once. It has two modes. If a coordinate file and a neighbour definition is given it calculates the similarity between each unit and its surrounding units. Neighbours are all units which fall into the specified radius or ring of radiuses (dn). On an equidistant grid the distance between grid units can simply be given if first hand neighbours shall be included, otherwise a ring has to be specified with a two value vector. If there is no coord, dn is obsolete. Then the similarity from each unit to all other units in the data-set is calculated.
The significance of the obtained similarity value can be tested in both cases. In the neighbour-case it is tested against a randomly rearranged species matrix veg. For each permuted matrix, simn is calculated for each unit and stored. The initial value is then tested against the resulting random values. If the initial value is lower than the mean of the permuted values (for each unit), the function looks at the lower end. If it is higher, the upper tail is tested. The test direction is given in the results file. Thus, for each unit it is known, whether the pattern is a deviation from random, if it is lower or higher than random, and if it is signifcantly different from random. In the all-case it is virtually the same but as a rearrangement of species on plots would change nothing, the function tests against an artificially produced data-set. This is done with ads and the key parameters resemble the original species matrix veg.
sim from this package and the following functions of other packages for the calculation of similarities between two sites: vegdist, dist.binary,
dsvdis, dist.