disparity | R Documentation |

An example of a `dispRity`

object.

one `dispRity`

object.

This matrix is based on the `BeckLee`

dataset and split into seven continuous subsets (`chrono.subsets`

).
It was bootstrapped 100 times (`boot.matrix`

) with four rarefaction levels.
Disparity was calculated as the `median`

of the `centroids`

(`dispRity`

).

BeckLee_disparity BeckLee

```
## Not run:
## Loading the data
data(BeckLee_mat99)
data(BeckLee_tree)
data(BeckLee_ages)
## Creating the 7 subsets
subsets <- chrono.subsets(BeckLee_mat99, BeckLee_tree,
time = seq(from = 30, to = 90, by = 10),
method = "continuous", model = "ACCTRAN",
FADLAD = BeckLee_ages)
## Bootstrapping and rarefying
bootstraps <- boot.matrix(subsets, bootstraps = 100,
rarefaction = c(20, 15, 10, 5))
## Calculating disparity
disparity <- dispRity(bootstraps, metric = c(median, centroids))
## End(Not run)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.