Ddivergence {MCMCglmm}R Documentation

d-divergence

Description

Calculates Ovaskainen's (2008) d-divergence between 2 zero-mean multivariate normal distributions.

Usage

Ddivergence(CA=NULL, CB=NULL, n=10000)

Arguments

CA Matrix A
CB Matrix B
n number of Monte Carlo samples for approximating the integral

Value

d-divergence

Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

References

Ovaskainen et. al. (2008) Proc. Roy. Soc - B (275) 1635 593-750

Examples

CA<-rIW(10, diag(2), n=1)
CB<-rIW(10, diag(2), n=1)
Ddivergence(CA, CB)

[Package MCMCglmm version 1.06 Index]