Description Usage Arguments Details Value Examples
Construct the covariance or precision matrix for the bivariate model constructed using the conditional approach.
1 2 3 4 5 6 7 |
r |
vector of distances |
var1 |
variance of C_11 |
var2 |
variance of C_2|1 |
kappa1 |
scale of C_11 |
kappa2 |
scale of C_2|1 |
B |
interaction matrix |
var |
variance of C |
kappa |
scale of C |
Both C_11 and C_2|1 are Matern covariance functions with smoothness parameter equal to 3/2. Covariance matrices are computed from Matern covariance functions using the vector of distances r
, so that Sigma[1,1] = cov(Y1(s),Y1(s+r[1])), Sigma[1 + n,1] = cov(Y2(s),Y1(s+r[1])) and so on. Currently the grids on which Y1 and Y2 are evaluated need to be identical.
The matrix B is the interaction matrix. The full covariance matrix returned is
Sigma = [Sigma_{11} & Sigma_{11}B' ; B Sigma_{11} & Sigma_{2|1} + B Sigma_{11}B'].
Covariance (or precision) matrix
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.