prabinit | R Documentation |
prabinit
converts a matrix into an object
of class prab
(presence-absence). The matrix may be read from a
file or an R-object. It may be a 0-1 matrix or a matrix with
non-negative entries (usually abundances).
print.prab
is a print method for such
objects.
Documentation here is in terms of biotic elements analysis (species are to be clustered). For species delimitation with dominant markers, see Hausdorf and Hennig (2010), individuals take the role of species and loci take the role of regions.
prabinit(file = NULL, prabmatrix = NULL, rows.are.species = TRUE,
neighborhood = "none", nbbetweenregions=TRUE, geodist=NULL, gtf=0.1,
distance = "kulczynski", toprab = FALSE, toprabp
= 0.05, outc = 5.2)
## S3 method for class 'prab'
print(x, ...)
file |
string. non-negative matrix ASCII file (such as example dataset
|
prabmatrix |
matrix with non-negative entries. Either |
rows.are.species |
logical. If |
neighborhood |
A string or a list with a component for
every region. The
components are vectors of integers indicating
neighboring regions. A region without neighbors (e.g., an island)
should be assigned a vector |
nbbetweenregions |
logical. If |
geodist |
matrix of non-negative reals. Geographical distances
between regions. Only used if |
gtf |
tuning constant for geco-distance if |
distance |
|
toprab |
logical. If |
toprabp |
numerical between 0 and 1, see |
outc |
numerical. Tuning constant for the outlier identification
associated with |
x |
object of class |
... |
necessary for print method. |
Species that are absent in all regions are omitted.
prabinit
produces
an object of class prab
, which is a list with components
distmat |
distance matrix between species. |
prab |
abundance or presence/absence matrix (if presence/absence, the entries are logical). Rows are regions, columns are species. |
nb |
neighborhood list, see above. |
regperspec |
vector of the number of regions occupied by a species. |
specperreg |
vector of the number of species present in a region. |
n.species |
number of species (in the |
n.regions |
number of regions. |
distance |
string denoting the chosen distance measure. |
geodist |
non-negative matrix. see above. |
gtf |
numeric. see above. |
spatial |
|
nonempty.species |
logical vector. The length is the number of species
in the original file/matrix. If |
nbbetweenregions |
see above. |
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
Hausdorf, B. and Hennig, C. (2010) Species Delimitation Using Dominant and Codominant Multilocus Markers. Systematic Biology, 59, 491-503.
read.table
, jaccard
,
kulczynski
, geco
,
qkulczynski
, nbtest
,
alleleinit
# If you want to use your own ASCII data files, use
# x <- prabinit(file="path/prabmatrixfile",
# neighborhood="path/neighborhoodfile")
data(kykladspecreg)
data(nb)
prabinit(prabmatrix=kykladspecreg, neighborhood=nb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.