Learn R Programming

optpart (version 3.0-3)

clique.test: Clique Test

Description

The ‘clique.test’ function analyzes within-clique variability in attributes of objects other than those used to calculate the similarity relation. If the cliques exhibit a narrower range of values than expected at random it may be that the variable analyzed has an underlying role in determining the attributes on which the similarity is calculated.

Usage

clique.test(cliq,env,minsize=2,plotit=FALSE)

Arguments

cliq

an object of class ‘clique’

env

a continuous environmental variable to test

minsize

the minimum size clique to test for range

plotit

a switch to control plotting each clique individually

Value

Produces a vector of probabilities, one for each clique that expresses the probability of obtaining a range of ‘env’ as small as observed. Also produces a plot of the sorted probabilities on the current device.

See Also

clique, mss.test, envrtest

Examples

Run this code
# NOT RUN {
data(shoshveg)
data(shoshsite)
dis.bc <- dsvdis(shoshveg,'bray')
# }
# NOT RUN {
cli.60 <- clique(dis.bc,0.60)
# }
# NOT RUN {
             # will run for several
# }
# NOT RUN {
print(clique.test(cli.60,shoshsite$swb))
# }
# NOT RUN {
  # minutes
# }

Run the code above in your browser using DataLab