Description Usage Arguments Details Value Author(s) Examples
Density, distribution function, quantile function, random generator, moments, scores and information matrix of univariate and multivariate distributions of the GAS package.
1 2 3 4 5 6 7 8 9 10 11 | ddist_Uni(y, Theta, Dist, log = FALSE)
pdist_Uni(q, Theta, Dist)
qdist_Uni(p, Theta, Dist)
rdist_Uni(Theta, Dist)
mdist_Uni(Theta, Dist)
Score_Uni(y, Theta, Dist)
IM_Uni(Theta, Dist)
ddist_Multi(y, Theta, Dist, log = FALSE)
rdist_Multi(Theta, N, Dist)
Score_Multi(y, Theta, Dist)
|
y, q |
|
p |
|
Theta |
|
Dist |
|
log |
|
N |
|
The function mdist_Uni returns a vector with four elements: mean, variance, skewness
and kurtosis coefficients. The functions Score_Uni and IM_Uni returns the score and the Fisher information matrix
for univariate distributions. The function Score_Multi returns the score for multivariate distributions.
See DistInfo for the lists of supported distributions.
These functions are not vectorized. ddist_Uni and ddist_Multi give the density, pdist_Uni gives
the distribution function, qdist_Uni gives the quantile function, and rdist_Uni and rdist_Multi generate random deviates.
numeric scalar for: ddist_Uni, pdist_Uni, qdist_Uni, rdist_Uni,
numeric vector for: Score_Uni, Score_Multi and rdist_Multi,
matrix for IM_Uni.
Leopoldo Catania
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Skew Student-t distribution
# log density
Theta = c("location" = 0, "scales" = 1, "skewness" = 1.2, "shape" = 7)
ddist_Uni(y = 0.5, Theta, "sstd", TRUE)
# probability
pdist_Uni(q = -1.69, Theta, "sstd")
#quantile
qdist_Uni(p = 0.05, Theta, "sstd")
#random generator
rdist_Uni(Theta, "sstd")
#moments
mdist_Uni(Theta, "sstd")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.