varcovBGCCM {geoR} | R Documentation

## Covariance matrix for the bivariate Gaussian common component geostatistical model

### Description

Covariance matrix for the bivariate Gaussian common component geostatistical model or its inverse, and optionally the determinant of the matrix.

### Usage

    varcovBGCCM(dists.obj, cov0.pars, cov1.pars, cov2.pars,
                cov0.model = "matern", cov1.model = "matern",
                cov2.model = "matern", kappa0 = 0.5, kappa1 = 0.5,
                kappa2 = 0.5, scaled = TRUE, inv = FALSE, det = FALSE)

### Arguments

`dists.obj` | ~~Describe `dists.obj` here~~
`cov0.pars` | ~~Describe `cov0.pars` here~~
`cov1.pars` | ~~Describe `cov1.pars` here~~
`cov2.pars` | ~~Describe `cov2.pars` here~~
`cov0.model` | ~~Describe `cov0.model` here~~
`cov1.model` | ~~Describe `cov1.model` here~~
`cov2.model` | ~~Describe `cov2.model` here~~
`kappa0` | ~~Describe `kappa0` here~~
`kappa1` | ~~Describe `kappa1` here~~
`kappa2` | ~~Describe `kappa2` here~~
`scaled` | ~~Describe `scaled` here~~
`inv` | logical. If `TRUE` the inverse of the covariance matrix is returned instead.
`det` | logical. Optional, if `TRUE` the logarithm of the detarminant of the covariance matrix is returned as an attribute.

### Value

A matrix which is the covariance matrix for the bivariate Gaussian common component geostatistical model or its inverse if `inv=TRUE`. If `det=T` the logarithm of the determinant of the matrix is also returned as an attribute named `logdetS`.

### Warning

This is a new function and still in draft format and pretty much untested.

### Author(s)

Paulo J. Ribeiro Jr. paulojus@leg.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.

### See Also

`cov.spatial`, `varcov.spatial`

### Examples

    # see http://www.leg.ufpr.br/geoR/tutorials/CCM.R

[Package geoR version 1.6-19 Index]