Description Usage Arguments Details Value Author(s) See Also Examples
Compute the Z-score for given relatedness
1 |
app_pairs |
A vector of relatedness values |
m |
Reference mean used in Z-score |
sd |
Reference standard deviation used in Z-score |
The Z-score is defined as Z=\frac{m_{pairs}- m}{sd} where m_{pairs} is the mean of relatedness values.
Value of Z-score.
Claire Dandine-Roulland
1 2 3 4 5 6 7 8 | # load chr2 data set (~10k SNPs in low LD)
x <- read.bed.matrix( system.file("extdata", "chr2.bed", package="gaston") )
# Compute Rousset Relationship Matrix
K <- Rousset(x)$Rousset
# Compute Z-score relatedness between individuals from similar population compared to all pairs
zscore(app.pairs(K, x@ped$population), m=app.unpairs(K, x@ped$population, mean), sd=app.unpairs(K, x@ped$population, sd))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.