Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

racg

Angular central Gaussian random values simulation


Description

Angular central Gaussian random values simulation.

Usage

racg(n, sigma)

Arguments

n

The sample size, a numerical value.

sigma

The covariance matrix in R^d.

Details

The algorithm uses univariate normal random values and transforms them to multivariate via a spectral decomposition. The vectors are then scaled to have unit length.

Value

A matrix with the simulated data.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr>

References

Tyler D. E. (1987). Statistical analysis for the angular central Gaussian distribution on the sphere. Biometrika 74(3): 579-589.

See Also

Examples

s <- cov( iris[, 1:4] )
x <- racg(100, s)
res<-acg.mle(x)  
res<-vmf.mle(x)  ## the concentration parameter, kappa, is very low, close to zero, as expected.

Rfast

A Collection of Efficient and Extremely Fast R Functions

v2.0.1
GPL (>= 2.0)
Authors
Manos Papadakis, Michail Tsagris, Marios Dimitriadis, Stefanos Fafalios, Ioannis Tsamardinos, Matteo Fasiolo, Giorgos Borboudakis, John Burkardt, Changliang Zou, Kleanthi Lakiotaki and Christina Chatzipantsiou.
Initial release
2020-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.