pgSTLM | R Documentation |
this function runs the Bayesian multinomial regression using Polya-gamma data augmentation
pgSTLM( Y, X, locs, params, priors, corr_fun = "exponential", n_cores = 1L, shared_covariance_params = TRUE, inits = NULL, config = NULL, n_chain = 1, progress = FALSE, verbose = FALSE )
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. |
corr_fun |
is a character that denotes the correlation function form. Current options include "matern" and "exponential". |
n_cores |
is the number of cores for parallel computation using openMP. |
shared_covariance_params |
is a logicial input that determines whether to fit the spatial process with component specifice parameters. If TRUE, each component has conditionally independent Gaussian process parameters theta and tau2. If FALSE, all components share the same Gaussian process parameters theta and tau2. |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.