#' Bayesian Polya-gamma regression
#'
#' this function runs the Bayesian multinomial regression using Polya-gamma data augmentation
#' @param Y is a \eqn{n \times J}{n x J} matrix of compositional count data.
#' @param X is a \eqn{n \times p}{n x p} matrix of climate variables.
#' @param params is a list of parameter settings. The list
#' \code{params} must contain the following values:
#' * \code{n_adapt}: A positive integer number of adaptive MCMC iterations.
#' * \code{n_mcmc}: A positive integer number of total MCMC iterations
#' post adaptation.
#' * \code{n_thin}: A positive integer number of MCMC iterations per saved
#' sample.
#' * \code{n_message}: A positive integer number of frequency of iterations
#' to output a progress message. For example, \code{n_message = 50}
#' outputs progress messages every 50 iterations.
#' @param priors is the list of prior settings.
#' @param n_cores is the number of cores for parallel computation using openMP.
#' @param inits is the list of intial values if the user wishes to specify initial values. If these values are not specified, then the intital values will be randomly sampled from the prior.
#' @param config is the list of configuration values if the user wishes to specify initial values. If these values are not specified, then default a configuration will be used.
#' @param n_chain is the MCMC chain id. The default is 1.
#' @param sample_rmvn is an indicator whether the faster multivariate normal sampler is used.
#' @export
pgLM <- function(
Y,
X,
params,
priors,
n_cores = 1L,
inits = NULL,
config = NULL,
n_chain = 1,
sample_rmvn = FALSE
# pool_s2_tau2 = true,
# file_name = "DM-fit",
# corr_function = "exponential"
) {
stop("The function pgLM() has been deprecated. Please use pg_lm() instead.")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.