make_covmat: Make covariance matrix.

View source: R/make_covmat.R

make_covmatR Documentation

Make covariance matrix.

Description

Make covariance matrix with different types of covariance models.

Usage

make_covmat(theta, dist_mtx, is_log, include_nugg, type = "exponential")

Arguments

theta

numeric vector with 3 covariance parameters: nugget, partial sill, and range (in that order).

dist_mtx

Matrix of pairwise distances between data locations.

is_log

logical. If TRUE then the values of theta are the natural logarithms of the parameters.

include_nugg

logical. Whether or not to include the nugget along the diagonal.

type

character. Type of covariance model: exponential, gaussian, or spherical; default is exponential.

Value

Covariance matrix.

Author(s)

Eric W. Fox


ericwfox/slmrf documentation built on Feb. 24, 2024, 11:02 p.m.