Description Usage Arguments Details Value Note See Also Examples
This function provides a GUI for the function rrisk.BayesPEM.
1 2 |
x |
Scalar value for number of pools ( |
n |
Scalar value for number of pools tested ( |
k |
Scalar value for number of individual samples physically combined into one pool. |
prior.pi |
Numeric vector containing parameters of a beta distribution as prior for prevalence |
prior.se |
Numeric vector containing parameters of a beta distribution as prior for sensitivity |
prior.sp |
Numeric vector containing parameters of a beta distribution as prior for specificity |
chains |
Positive single numeric value, number of independent MCMC chains (default 3). |
burn |
Positive single numeric value, length of the burn-in period (default 1000). |
update |
positive single numeric value, length of update iterations for estimation (default 10000). |
thin |
Positive single numeric value (default 1). The samples from every kth iteration will be used for
inference, where k is the value of thin. Setting |
The diagnostic parameters se
and sp
are defined at
the pool level, equivalent to missclass='pool'
in rrisk.BayesPEM
function. See rrisk.BayesPEM
for more details.
The function PEMGUI
returns an instance of the bayesmodelClass
class containing following information
|
Logical, whether the model has converged (assessed by the user). |
|
Data frame containing statitsics of the posterior distribution. |
|
Data frame giving the joint posterior probability distribution. |
|
Names of the parameters jointly estimated by the Bayes model. |
|
Model in rjags/JAGS (originally BRugs/Winbugs) syntax as a character string. |
|
Number of independent MCMC chains. |
|
Length of burn-in period. |
|
Length of update iterations for estimation. |
The convergence of the model is assessed by the user using diagnostic plots.
1 2 3 4 5 6 | #------------------------------------------
# Example of PEM model. Without parameters,
# the input fields will show default values
#------------------------------------------
mod <- PEMGUI()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.