Description
Multivariate Product Distributions for Elliptically Contoured Distributions.
Description
Estimates multivariate subgaussian stable densities and probabilities as well as generates random variates using product distribution theory. A function for estimating the parameters from data to fit a distribution to data is also provided, using the method from Nolan (2013) <doi:10.1007/s00180-013-0396-7>.
README.md
mvpd: An R Package for Multivariate Product Distributions
[dpr]mvss
: mutivariate subgaussian stable distributions
The goal of mvpd
is to use product distribution theory to allow the numerical calculations of specific scale mixtures of the multivariate normal distribution. The multivariate subgaussian stable distribution is the product of the square root of a univariate positive stable distribution and the multivariate normal distribution (see Nolan (2013)).
Example
Generate 1000 draws from a random bivariate subgaussian stable distribution with alpha=1.71 and plot.
library(mvpd)
set.seed(10)
## basic example code
biv <- rmvss(n=1e3, alpha=1.71, Q=matrix(c(10,7.5,7.5,10),2))
head(biv)
#> [,1] [,2]
#> [1,] -0.2260798 -0.6168492
#> [2,] -6.1460819 -4.5603538
#> [3,] 1.4592466 1.6213040
#> [4,] -4.4159078 -2.9252448
#> [5,] -6.7106973 -3.8158068
#> [6,] 5.9107788 5.1332625
plot(biv); abline(h=0,v=0)