| transform_parameters_anisotropic | R Documentation |
This function takes a vector of transformed parameters and applies the appropriate transformations to return them in the original scale for use in anisotropic SPDE models.
transform_parameters_anisotropic(theta, nu_upper_bound = NULL)
theta |
A numeric vector of length 4 or 5, containing the transformed parameters in this order:
|
nu_upper_bound |
(optional) A numeric value representing the upper bound for the smoothness parameter nu.
This is only used, and must be provided, if |
A named list with the parameters in the original scale:
The original scale for hx (exponential of lhx).
The original scale for hy (exponential of lhy).
The original scale for hxy (inverse logit transformation of logit_hxy).
The original scale for sigma (exponential of lsigma).
The original scale for nu (using the forward_nu transformation). Only included if lnu is provided.
# With lnu
theta <- c(log(0.1), log(0.2), log((0.3 + 1) / (1 - 0.3)), log(0.5), log(1))
nu_upper_bound <- 2
transform_parameters_anisotropic(theta, nu_upper_bound)
# Without lnu
theta <- c(log(0.1), log(0.2), log((0.3 + 1) / (1 - 0.3)), log(0.5))
transform_parameters_anisotropic(theta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.