wendland2 {demu}R Documentation

Calculate the correlation matrix according to the Wendland2 model.

Description

wendland2() is a helper function that constructs a correlation matrix according to the Wendland 2 model with lengthscales given by the parameter vector theta. The design must have been already formated in distlist format using the function makedistlist().

Usage

wendland2(l.d,theta)

Arguments

l.d

Current design distance matrices in distlist format

theta

A vector of range parameters

Value

A list containing the constructed correlation matrix.

See Also

demu-package rhomat matern32 matern52 wendland1 generalized.wendland

Examples

library(demu)

design=matrix(runif(10,0,1),ncol=2,nrow=5)
theta=rep(0.3,2)
l.d=makedistlist(design)
R=wendland2(l.d,theta)$R
R

[Package demu version 0.3.0 Index]