extract: Extract results and breakpoints from a 'smw' object

Description Usage Arguments Details Value See Also Examples

Description

Functions to extract results and breakpoints from a smw object

Usage

1
2
3
4
5
6
## S3 method for class 'smw'
extract(smw, w = NULL, index = "dp", sig = "z",
  z = 1.85, BPs = "max", seq.sig = 3)

## S3 method for class 'dp'
bp(dp)

Arguments

smw

An object of class smw resulted from the SMW analysis.

w

Numeric. A "target" window size from which results will be extracted (see Details). Only effective if the smw object contains results from multiple window sizes.

index

The result to be extracted:

  • "dp": The dissimilarity profile (DP) table containing significant discontinuities and suggested breakpoints. The returned DP has class "dp", with an own generic print method. The print command prints and returns invisibly the DP.

  • "rdp": data frame containing the randomized DP;

  • "md": mean dissimilarity of the randomized DP;

  • "sd": standard deviation for each sample position;

  • "oem": overall expected mean dissimilarity;

  • "osd": average standard deviation for the dissimilarities;

  • "params": list with input arguments

sig

Significance test for detecting dissimilarity values that differs significantly from those appearing in a random pattern. The following tests are considered with default to sig.test="z":

  • "dp" consider normalized dissimilarity (z-scores) discontinuities that exceed a "z" critical value;

  • "sd" consider dissimilarity discontinuities that exceed mean plus one standard deviation;

  • "SD2" consider dissimilarity discontinuities that exceed mean plus two standard deviation;

  • "tail1" Consider dissimilarity discontinuities that exceed 95 percent confidence limits.

z

The critical value for the significance of z-values. Defaults to 'z=1.85' (Erdös et.al, 2014).

BPs

Defines if the breakpoints should be chosen as those sample positions corresponding to the maximum dissimilarity in a sequence of significant values ("max") or as those sample positions corresponding to the median position of the sequence ("median"). Defaults to BPs="max". If NULL the breakpoints are not computed.

seq.sig

The maximum length of consecutive, significant values of dissimilarity that will be considered in defining the community breakpoints. Defaults to seq.sig=3;

dp

An object of class dp (see Details).

Details

If the smw object contains results from multiple window sizes, the DP table will be based on the average Z-score over the set of analysed window sizes. Available methods for class "dp" are print, bp and plot.

The argument w is optional. If the smw object is length 1, w is ignored. If length(smw)>1 and w is NULL, the function will extract the dissimilarity profile averaged over the set of window sizes.

Value

See Also

plot.smw.

Examples

1
2
3
4
5
6
7
data(sim1)
sim1o<-OrdData(sim1$envi,sim1$comm)


ws50<-SMW(yo=sim1o$yo,ws=50)
ws50_dp<-extract(ws50)
head(ws50_dp)

segRDA documentation built on July 31, 2019, 9:03 a.m.