View source: R/miscfunctions.R
rspe | R Documentation |
Simulate data from the multivariate power exponential distribution given the location, scale matrix, shape, and skewness parameter.
rspe(n, location = rep(0, nrow(scale)), scale = diag(length(location)),
beta = 1, psi = c(0, 0))
n |
Number of observations to simulate. |
location |
A |
scale |
A |
beta |
A positive shape parameter |
psi |
A |
Based on a Metropolis-Hastings rule.
A matrix with rows representing the p
-dimensional observations.
Utkarsh J. Dang, Ryan P. Browne, and Paul D. McNicholas
dat <- rspe(n = 1000, beta = 0.75, location = c(0,0), scale =
matrix(c(1,0.7,0.7,1),2,2), psi = c(5,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.