create_mcov {SpatFD}R Documentation

Create Covariance Matrices given a series of spatial model parameters

Description

This function creates covariance matrices for spatial data based on the provided model parameters.

Usage

  create_mcov(coordenadas, t.models)

Arguments

coordenadas

A matrix of coordinates.

t.models

A data frame with model parameters.

Value

A list of covariance matrices.

Examples

  
  data(vowels)
  t.models = data.frame(sill = c(1887.47,1447.27,3533.96,1850.27,432.63),
                      phi  = c(106.68,109.1,19.4,150.32,31.52),
                      tausq =c(0,0,0,0,0),
                      model = as.character(c("gaussian","gneiting",
                                             "matern","cubic",
                                             "wave")),
                      kappa = c(0,0,7.3,0,0)
                      
)
create_mcov(vowels_coords,t.models)
  

[Package SpatFD version 0.0.1 Index]