Learn R Programming

cocons (version 0.1.5)

GetNeg2loglikelihoodTaper: GetNeg2loglikelihoodTaper

Description

compute the negative 2 log likelihood based on theta

Usage

GetNeg2loglikelihoodTaper(theta, par.pos, ref_taper, locs, 
x_covariates, smooth.limits, cholS, z, n, lambda, safe = TRUE)

Value

value

Arguments

theta

(numeric vector) a vector with parameters values.

par.pos

(list) par.pos list from getDesignMatrix.

ref_taper

(S4) spam object based on a compact-supported covariance function.

locs

(matrix) spatial location matrix.

x_covariates

(data.frame) design matrix.

smooth.limits

(numeric vector) smooth.limits.

cholS

(S4) Cholesky object from spam.

z

(numeric vector) a vector of observed values.

n

(numeric) dim(z)[1].

lambda

(numeric vector) a vector including lambda.Sigma, lambda.betas, lambda.reg (in this order)

safe

(TRUE/FALSE) if TRUE returns a large pre-defined value under Cholesky errors. Default TRUE.

Author

Federico Blasi