GetNeg2loglikelihoodTaperProfile {cocons}R Documentation

GetNeg2loglikelihoodTaperProfile

Description

compute the negative 2 log likelihood based on theta

Usage

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

Arguments

theta

(numeric vector) a vector with parameters values.

par.pos

(list) par.pos list.

ref_taper

(S4) spam object based on a taper based 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

(integer) dim(z)[1].

lambda

(numeric) regularization parameter.

safe

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

Value

(numeric)

Author(s)

Federico Blasi


[Package cocons version 0.1.4 Index]