Description Usage Arguments Details Value Note Author(s) References Examples
Create a matrix of weights accounting for recurrent genotypes following Wagner et al (2005).
1 | genoweight(X, genotypes)
|
X |
a |
genotypes |
A vector giving genotype identity. Typically produced by |
The weights are computed as the inverse of the number of similar genotypes following the proposition of Wagner et al (2005).
A dist
object corresponding to the matrix of weights for recurent genotypes. Each individual receives a weight corresponding to the inverse of the number of similar genotypes.
The first example below illustrates the use of genoweight
with the example given in Wagner et al. 2005 page 1752.
Jean-Pierre Rossi <ggene.package@gmail.com>
Wagner, H. H., R. Holderegger, S. Werth, F. Gugerli, S. E. Hoebee and C. Scheidegger. 2005. Variogram analysis of the spatial genetic structure of continuous populations using multilocus microsatellite data. Genetics 169, 1739-1752.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(Wagner)
count <- genocount(X=Wagner) ; count
mat <- genoweight(X=Wagner,genotyp=count$vec) ; mat
data(crypho)
#compute the weights
count <- genocount(X=crypho)
mat <- genoweight(X=crypho,genotyp=count$vec)
#compute the weighted variogram
wva <- varioWeight(X=crypho, weights=mat)
## Not run:
#performs the randomizations on weighted variogram
env <- randsvariog(var=wva, X=crypho, nsim=9, bounds=NULL, save.sim=FALSE, weights=mat)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.