Title: | Loading a JAGS Module for the Piecewise Exponential Distribution |
---|---|
Description: | Load the Just Another Gibbs Sampling (JAGS) module 'pexm'. The module provides the tools to work with the Piecewise Exponential (PE) distribution in a Bayesian model with the corresponding Markov Chain Monte Carlo algorithm (Gibbs Sampling) implemented via JAGS. Details about the module implementation can be found in Mayrink et al. (2021) <doi:10.18637/jss.v100.i08>. |
Authors: | Vinicius Mayrink [aut, cre] , Joao Duarte [aut], Fabio Demarqui [ctb] |
Maintainer: | Vinicius Mayrink <[email protected]> |
License: | GPL-3 |
Version: | 1.1.3 |
Built: | 2024-11-24 06:38:30 UTC |
Source: | CRAN |
Function to load the Just Another Gibbs Sampling (JAGS) module pexm
into the R
environment.
loadpexm(f.path = NULL)
loadpexm(f.path = NULL)
f.path |
This is an optional argument. If having difficulties to find the main file " |
The main purpose of the present function is to load the target JAGS module pexm into the R environment.
The pexm module allows the application of the Piecewise Exponential (PE) distribution in any Bayesian model implemented through JAGS.
In order to apply this loading routine, it is necessary to have JAGS installed in the computer.
The supporting package rjags is also required and it should have been automatically installed together with pexm.
Important remark for Windows users: the JAGS version 4.3.0 is the one considered in the present implementation of pexm.
If working with another version, one must download the source code of pexm and then modify the file "Makevars.win" (directory src
).
In this case, simply adapt the path in JAGS_ROOT
with the correct version number.
In order to build the present package, the source code of runjags (Denwood; 2016) was used as an example. Details about pexm and
the piecewise exponential model can be found in Mayrink et al. (2021).
Indication of whether the JAGS module pexm was correctly loaded in the R
environment.
DOI:10.18637/jss.v071.i09 (Denwood; 2016)
DOI:10.18637/jss.v100.i08 (Mayrink et al.; 2021)
# Load the new module with the command below: loadpexm()
# Load the new module with the command below: loadpexm()
Load the Just Another Gibbs Sampling (JAGS) module "pexm". The module provides the tools to work with the Piecewise Exponential (PE) distribution in a Bayesian model with the corresponding Markov Chain Monte Carlo algorithm (Gibbs Sampling) implemented via JAGS.
The current version contains the main function loadpexm
to load the proposed JAGS module.
Details about JAGS can be found in the JAGS User Manual.
Download instructions are presented in the home page given by this link.
Details about pexm and the piecewise exponential model can be found in Mayrink et al. (2021).
Vinicius D. Mayrink, Joao D. N. Duarte and Fabio N. Demarqui.
Departamento de Estatistica, ICEx, Universidade Federal de Minas Gerais, Av. Antonio Carlos, 6627, Belo Horizonte, MG, Brazil, 31270-901.
DOI:10.18637/jss.v100.i08 (Mayrink et al.; 2021)