Title: | Statistical Modelling for Asymmetric Exponential Power Distribution |
---|---|
Description: | Developed for Computing the probability density function, cumulative distribution function, random generation, estimating the parameters of asymmetric exponential power distribution, and robust regression analysis with error term that follows asymmetric exponential power distribution. The asymmetric exponential power distribution studied here is a special case of that introduced by Dongming and Zinde-Walsh (2009) <doi:10.1016/j.jeconom.2008.09.038>. |
Authors: | Mahdi Teimouri [aut, cre, cph, ctb]
|
Maintainer: | Mahdi Teimouri <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.1.4 |
Built: | 2025-02-06 05:41:14 UTC |
Source: | https://github.com/cran/AEP |
The pdf of AEP distribution given by
where ,
with
,
,
,
,
and
daep(x, alpha, sigma, mu, epsilon, log = FALSE)
daep(x, alpha, sigma, mu, epsilon, log = FALSE)
x |
Vector of observation of requested random realizations. |
alpha |
Tail thickness parameter. |
sigma |
Scale parameter. |
mu |
Location parameter. |
epsilon |
Skewness parameter. |
log |
If |
The AEP distribution is a special case of asymmetric exponential power distribution studied by Dongming and Zinde-Walsh (2009) when . Also, note that if
, then the AEP distribution turns into a normal distribution with mean
and standard deviation
. When
, the AEP distribution is a slight variant of epsilon-skew-normal distribution introduced by Mudholkar and Huston (2001).
Computed pdf of AEP distribution at points of vector .
Mahdi Teimouri
Z. Dongming and V. Zinde-Walsh, 2009. Properties and estimation of asymmetric exponential power distribution, Journal of Econometrics, 148(1), 86-99.
G. S. Mudholkar and A. D. Huston, 2001. The epsilon-skew-normal distribution for analyzing near-normal data, Journal of Statistical Planning and Inference, 83, 291-309.
daep(x = 2, alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5, log = FALSE)
daep(x = 2, alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5, log = FALSE)
Estimates the parameters of AEP distribution.
fitaep(x, initial = FALSE, starts)
fitaep(x, initial = FALSE, starts)
x |
Vector of observations. |
initial |
By default is |
starts |
If initial values |
A list of objects in two parts as
The EM estimator for the parameters of AEP distribution.
A sequence of goodness-of-fit measures consist of Akaike Information Criterion (AIC
), Consistent Akaike Information Criterion (CAIC
), Bayesian Information Criterion (BIC
), Hannan-Quinn information criterion (HQIC
), Anderson-Darling (AD
), Cram\'eer-von Misses (CVM
), Kolmogorov-Smirnov (KS
), and log-likelihood (log-likelihood
) statistics.
Mahdi Teimouri
A. P. Dempster, N. M. Laird, and D. B. Rubin, 1977. Maximum likelihood from incomplete data via the EM algorithm, Journal of the Royal Statistical Society Series B, 39, 1-38.
x <- raep(n=50, alpha=.8, sigma=1, mu=0, epsilon=0.5) fitaep(x, initial = FALSE, starts)
x <- raep(n=50, alpha=.8, sigma=1, mu=0, epsilon=0.5) fitaep(x, initial = FALSE, starts)
Computes the cdf of AEP distribution given by
where ,
with
,
,
, and
.
paep(x, alpha, sigma, mu, epsilon, log.p = FALSE, lower.tail = TRUE)
paep(x, alpha, sigma, mu, epsilon, log.p = FALSE, lower.tail = TRUE)
x |
Vector of observations. |
alpha |
Tail thickness parameter. |
sigma |
Scale parameter. |
mu |
Location parameter. |
epsilon |
Skewness parameter. |
log.p |
If |
lower.tail |
If |
Computed cdf of AEP distribution at points of vector .
Mahdi Teimouri
paep(x = 2, alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5, log.p = FALSE, lower.tail = TRUE)
paep(x = 2, alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5, log.p = FALSE, lower.tail = TRUE)
The plasma survival data contains the Survival times of plasma cell myeloma for 112 patients, see Carbone et al. (1967).
data(plasma)
data(plasma)
A text file with four columns.
P. P. Carbone, L. E. Kellerhouse, and E. A. Gehan. 1967. Plasmacytic myeloma: A study of the relationship of survival to various clinical manifestations and anomalous protein type in 112 patients. The American Journal of Medicine, 42 (6), 937-48.
Computes the quantile function of AEP distribution given by
where
,
with
,
,
,
and
qaep(u, alpha, sigma, mu, epsilon)
qaep(u, alpha, sigma, mu, epsilon)
u |
Numeric vector with values in |
alpha |
Tail thickness parameter. |
sigma |
Scale parameter. |
mu |
Location parameter. |
epsilon |
Skewness parameter. |
A vector of length n
, consists of the random generated values from AEP distribution.
Mahdi Teimouri
qaep(runif(1), alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5)
qaep(runif(1), alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5)
Simulates realizations from AEP distribution.
raep(n, alpha, sigma, mu, epsilon)
raep(n, alpha, sigma, mu, epsilon)
n |
Number of requested realizations. |
alpha |
Tail thickness parameter. |
sigma |
Scale parameter. |
mu |
Location parameter. |
epsilon |
Skewness parameter. |
A vector of length n
, consists of the random generated values from AEP distribution.
Mahdi Teimouri
raep(n = 100, alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5)
raep(n = 100, alpha = 1.5, sigma = 1, mu = 0, epsilon = 0.5)
Estimates parameters of the multiple linear regression model through EM algorithm when error term follows AEP distribution. The regression model is given by
where are the
regression coefficients and
is the error term follows a zero-location AEP distibution.
regaep(y, x)
regaep(y, x)
y |
Vector of response observations of length |
x |
An |
A list of estimated regression coefficients, summary of residuals, F statistic, R-square (), adjusted R-square, and inverted observed Fisher information matrix.
Mahdi Teimouri
A. P. Dempster, N. M. Laird, and D. B. Rubin, 1977. Maximum likelihood from incomplete data via the EM algorithm, Journal of the Royal Statistical Society Series B, 39, 1-38.
x <- seq(-5, 5, 0.1) y <- 2 + 2*x + raep( length(x), alpha = 1, sigma = 0.5, mu = 0, epsilon = 0.5) regaep(y, x)
x <- seq(-5, 5, 0.1) y <- 2 + 2*x + raep( length(x), alpha = 1, sigma = 0.5, mu = 0, epsilon = 0.5) regaep(y, x)