This section explains how to specify custom hyperparameters using the `params` argument.
For each distribution referenced below,
we use the scale parameterization found on the distribution's Wikipedia page.
You may specify the following as named elements of the `params` list:
m_0: (numeric vector) The prior mean of the state vector at time zero
(\(\theta_0\)).
C_0: (numeric matrix) The prior variance-covariance matrix of the state
vector at time zero (\(\theta_0\)).
alpha_sigma2, beta_sigma2: (numeric scalars) The inverse-Gamma parameters
(scale parameterization) of the prior distribution on the observation error
(\(\sigma^2\)).
sigma2: (numeric scalar) The value to use for the observation error
(\(\sigma^2\)) if `sample_sigma2` = FALSE.
alpha_lambda, beta_lambda: (numeric scalars) The inverse-Gamma parameters
(scale parameterization) of the prior distribution on
\(\lambda = (1 - \delta) / \delta\),
where \(\delta\) is the discount factor.
scale_W: (numeric matrix) The scale matrix for the inverse-Wishart prior
distribution on the variance-covariance matrix of the process error (`W`).
df_W: (numeric scalar) The degees of freedom for the inverse-Wishart prior
distribution on the variance-covariance matrix of the process error (`W`).
L: (numeric scalar) The period of the Fourier series approximation.
The spatial locations and knot locations are rescaled
to range from -`L`/4 to `L`/4 because the Fourier decomposition assumes that
the spatial surface is periodic.
Regardless of the value of `L`,
kernel parameter estimates are back-transformed to the original scale.
smoothing: (numeric scalar) Controls the degree of smoothing in the
process convolution for models with spatially varying kernel parameters.
The values in the process convolution matrix are proportional to
exp(d/`smoothing`) where d is the distance between spatial locations
before rescaling with `L`
mean_mu_kernel: (numeric vector) The mean of the normal prior distribution
on `mu_kernel`, the mean of the redistribution kernel.
In the spatially varying case, the prior distribution for `mu_kernel`
is assumed to be the same at every knot location.
var_mu_kernel: (numeric matrix) The variance of the normal prior distribution
on `mu_kernel`, the mean of the redistribution kernel.
scale_Sigma_kernel: (numeric matrix) The scale matrix for the
inverse-Wishart prior distribution on `Sigma_kernel`,
the variance-covariance matrix of the redistribution kernel.
df_Sigma_kernel: (numeric scalar) The degrees of freedom for the
inverse-Wishart prior distribution on `Sigma_kernel`,
the variance-covariance matrix of the redistribution kernel.
proposal_factor_mu: (numeric scalar) Controls the variance of the proposal distribution for
`mu_kernel`. The proposals have a variance of `proposal_factor_mu`^2 * `var_mu_kernel`.
`proposal_factor_mu` must generally be set lower for spatially varying models.
proposal_factor_Sigma: (numeric scalar) Controls the variance of the proposal distribution
for `Sigma_kernel`. As is the case with `proposal_factor_mu`, a higher value
corresponds to a higher variance.
The degrees of freedom for the proposal distribution for `Sigma_kernel` is
ncol(`locs`) + `df_Sigma_kernel` / `proposal_factor_Sigma`.
`proposal_factor_Sigma` must generally be set lower for spatially varying
models.
kernel_samples_per_iter: (numeric scalar) Number of times to update the kernel
parameters per iteration of the sampling loop.