m2LL: Minus 2 time the log-likelihood for spatial linear model.

View source: R/m2LL.R

m2LLR Documentation

Minus 2 time the log-likelihood for spatial linear model.

Description

Minus 2 time the log-likelihood for spatial linear model.

Usage

m2LL(theta, y, X, dist_mtx, est_meth, cov_type = "exponential",
  boundRange = F)

Arguments

theta

Numeric vector of covariance parameters (use log transformed nugget, partial sill, and range, in that order).

y

Numeric response vector.

X

Design matrix.

dist_mtx

Matrix of pairwise distances between data locations.

est_meth

character: Estimation method: 'REML' for restricted maximum likelihood (default), or 'ML' for maximum likelihood.

cov_type

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

boundRange

whether to bound effective range at max distance.

Value

Minus 2 times the log-likelihood for spatial linear model.

Author(s)

Eric W. Fox


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