raoperms | R Documentation |
C++ function used by phy_or_env_spec(). Not meant for use otherwise.
raoperms(
p,
D,
n_sim=1000,
seed=12345)
p |
numeric vector of length n. A species weights vector. |
D |
numeric vector of length n(n-1)/2. i.e. a dist object representing the lower triangle of an nxn matrix. |
n_sim |
integer. number of sims to do (default: 1000). |
seed |
integer. a seed to be used for permutation. setting seed=0 will give nondeterministic random results, as if no seed were set (default: 0). |
Vector of Rao values, length = n_sim.
John L. Darcy
# library(specificity)
# p <- runif(100)
# D <- dist(runif(100))
# a <- raoperms(p,D,100,12345)
# hist(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.