Title: | Neo-Normal Distributions Family for Markov Chain Monte Carlo (MCMC) Models in 'JAGS' |
---|---|
Description: | A 'JAGS' extension module provides neo-normal distributions family including MSNBurr, MSNBurr-IIa, GMSNBurr, Lunetta Exponential Power, Fernandez-Steel Skew t, Fernandez-Steel Skew Normal, Fernandez-Osiewalski-Steel Skew Exponential Power, Jones Skew Exponential Power. References: Choir, A. S. (2020). "The New Neo-Normal Distributions and Their Properties".Unpublished Dissertation. Denwood, M.J. (2016) <doi:10.18637/jss.v071.i09>. Fernandez, C., Osiewalski, J., & Steel, M. F. (1995) <doi:10.1080/01621459.1995.10476637>. Fernandez, C., & Steel, M. F. (1998) <doi:10.1080/01621459.1998.10474117>. Iriawan, N. (2000). "Computationally Intensive Approaches to Inference in NeoNormal Linear Models".Unpublished Dissertation. Mineo, A., & Ruggieri, M. (2005) <doi:10.18637/jss.v012.i04>. Rigby, R. A., & Stasinopoulos, D. M. (2005) <doi:10.1111/j.1467-9876.2005.00510.x>. Lunetta, G. (1963). "Di una Generalizzazione dello Schema della Curva Normale". Rigby, R. A., Stasinopoulos, M. D., Heller, G. Z., & Bastiani, F. D. (2019) <doi:10.1201/9780429298547>. |
Authors: | Achmad Syahrul Choir [aut, cre], Resi Ramadani [aut], Nur Iriawan [aut], S Sifa'ul Khusna Malikhatul Mutmainah [ctb], Matthew Denwood [cph], Martyn Plummer [cph] (Copyright holder of the code in src/distributions/D*.*, configure.ac, R/runjags_functions.R, and original copyright holder of some modified code where indicated) |
Maintainer: | Achmad Syahrul Choir <[email protected]> |
License: | GPL-2 |
Version: | 0.1.5 |
Built: | 2024-11-10 06:45:28 UTC |
Source: | CRAN |
The neojags package contains a JAGS extension module that provides several additional distributions for use within JAGS (see details below). This function is a simple wrapper to load this module. The version of the module supplied within the neojags package can only be used with the rjags package, or with the rjags or rjparallel methods within runjags. For a standalone JAGS module for use with any JAGS method (or independent JAGS runs) please see: https://sourceforge.net/projects/neojags/
load.neojagsmodule(fail = TRUE, silent = FALSE) unload.neojagsmodule() load.neoJAGSmodule(fail = TRUE, silent = FALSE) unload.neoJAGSmodule()
load.neojagsmodule(fail = TRUE, silent = FALSE) unload.neojagsmodule() load.neoJAGSmodule(fail = TRUE, silent = FALSE) unload.neoJAGSmodule()
fail |
should the function fail using stop() if the module cannot be loaded? |
silent |
if !fail, the function will by default print a diagnostic message if the module cannot be loaded - the silent option suppresses this message. |
This module provides the following distributions for JAGS:
Jones'S Skew Exponential Power: djskew.ep(mu, tau, nu1, nu2)
For :
For :
where
GMSNBurr: dgmsnburr(mu, tau,alpha1,alpha2)
where
MSNBurr: dmsnburr(mu, tau,alpha)
where
MSNBurr-IIa: dmsnburr2a(mu, tau, alpha)
Fernandez-Osiewalski-Steel Skew Exponential Power: dfskew.ep(mu, tau, nu, alpha)
For :
For :
where
Fernandes Steel Skew-t: dfskew.t(mu, tau, nu, alpha)
For :
For :
where
Fernandes Steel Skew Normal: dfskew.norm(mu, tau, alpha)
For :
For :
Lunetta Exponential Power : dlep(mu, tau, nu)
For an easier to read version of these PDF equations, see the userguide vignette.
Invisibly returns TRUE if able to (un)load the module, or FALSE otherwise
Choir, A. S. 2020. The New Neo-Normal Distributions and Their Properties, Doctoral dissertation, Institut Teknologi Sepuluh November.
Denwood, M.J. 2016. runjags: An R Package Providing Interface Utilities, Model Templates, Parallel Computing Methods and Additional Distributions for MCMC Models in JAGS. J. Stat. Softw. 71. doi:10.18637/jss.v071.i09.
Fernandez, C., Osiewalski, J., & Steel, M. F. 1995. Modeling and inference with v-spherical distributions. Journal of the American Statistical Association, 90(432), 1331-1340.
Fernandez, C., & Steel, M. F. 1998. On Bayesian modeling of fat tails and skewness. Journal of the american statistical association, 93(441), 359-371.
Iriawan, N. 2000. Computationally Intensive Approaches to Inference in NeoNormal Linear Models, Doctoral dissertation, Curtin University of Technology, Perth, Australia.
Rigby, R. A., & Stasinopoulos, D. M. 2005. Generalized additive models for location, scale and shape. Journal of the Royal Statistical Society: Series C (Applied Statistics), 54(3), 507-554.
Lunetta, G. 1963. Di una Generalizzazione dello Schema della Curva Normale. Annali della Facolt'a di Economia e Commercio di Palermo, 17, 237–244.
Rigby, R. A., Stasinopoulos, M. D., Heller, G. Z., & Bastiani, F. D. 2019. Distributions for Modeling Location, Scale, and Shape: Using GAMLSS in R. CLC Press.
# Load the module for use with any rjags model: available <- neojags::load.neojagsmodule(fail=FALSE) if(available){ # A simple model to sample from a Jones's Skew Exponential Power Distribution distribution. # (Requires the rjags or rjparallel methods) m <- "model{ L ~ djskew.ep(0,1,2,2) }" library(runjags) neojags::load.neojagsmodule() results <- run.jags(m, monitor="L", method="rjags") }
# Load the module for use with any rjags model: available <- neojags::load.neojagsmodule(fail=FALSE) if(available){ # A simple model to sample from a Jones's Skew Exponential Power Distribution distribution. # (Requires the rjags or rjparallel methods) m <- "model{ L ~ djskew.ep(0,1,2,2) }" library(runjags) neojags::load.neojagsmodule() results <- run.jags(m, monitor="L", method="rjags") }