Last chance! 50% off unlimited learning
Sale ends in
Random values generation from the ESAG distribution.
resag(n, mu, gam)
A number; how many vectors you want to generate.
The mean vector the ESAG distribution, a vector in
The two gamma parameters of the ESAG distribution.
An
A random sample from the ESAG distribution is generated. In case the gammas are zero, the sample is drawn from the Independent Angular Gaussian (or projected normal).
Mardia, K. V. and Jupp, P. E. (2000). Directional statistics. Chicester: John Wiley & Sons.
Paine P.J., Preston S.P., Tsagris M. and Wood A.T.A. (2018). An Elliptically Symmetric Angular Gaussian Distribution. Statistics and Computing, 28(3):689--697.
# NOT RUN {
m <- colMeans( as.matrix( iris[,1:3] ) )
y <- resag(1000, m, c(1, 0.5) )
esag.mle(y)
# }
Run the code above in your browser using DataLab