This function takes a vector of transformed parameters and applies the appropriate transformations to return them in the original scale for use in spacetime SPDE models.
transform_parameters_spacetime(theta, st_model)
A named list with the parameters in the original scale:
The original scale for kappa (exponential of lkappa).
The original scale for sigma (exponential of lsigma).
The original scale for gamma (exponential of lgamma).
The original scale for rho.
The original scale for rho2, if d = 2.
A numeric vector containing the transformed parameters in this order:
The logarithmic representation of kappa.
The logarithmic representation of sigma.
The logarithmic representation of gamma.
The logit-transformed representation of rho, if drift = 1.
The logit-transformed representation of rho2, if drift = 1 and d = 2.
A list containing the spacetime model parameters:
The dimension (e.g., 1 or 2).
The bound for rho and rho2.
A logical value indicating if rho and rho2 are bounded.
A logical value indicating if drift is included in the model.