pg_stlm_mra | R Documentation |
this function runs the Bayesian multinomial regression using Polya-gamma data augmentation
pg_stlm_mra( Y, X, locs, params, priors, n_cores = 1L, M = 4, n_coarse_grid = 10, inits = NULL, config = NULL, n_chain = 1, progress = FALSE, verbose = FALSE, store_R = TRUE, rho_mh = FALSE, use_spam = TRUE )
Y |
is a N x J x T array of compositional count data. |
X |
is a n_sites x p matrix of climate variables. |
locs |
is a n_sites x 2 matrix of observation locations. |
params |
is a list of parameter settings. The list
|
priors |
is a list of prior settings. |
n_cores |
is the number of cores for parallel computation using openMP. |
M |
The number of resolutions. |
n_coarse_grid |
The number of basis functions in one direction (e.g. |
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. |
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. |
n_chain |
is the MCMC chain id. The default is 1. |
progress |
is a logicial input that determines whether to print a progress bar. |
verbose |
is a logicial input that determines whether to print more detailed messages. |
store_R |
is a logical input of whether cache the cholesky outside the loop over time |
rho_mh |
is a logical input of whether to sample rho using MH or a truncated normal proposal |
use_spam |
is a boolean flag to determine whether the output is a list of spam matrix objects ( |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.