GetNeg2loglikelihoodProfile {cocons}R Documentation

GetNeg2loglikelihoodProfile

Description

compute the negative 2 log likelihood based on theta

Usage

GetNeg2loglikelihoodProfile(theta, par.pos, locs, x_covariates, 
smooth.limits, z, n, x_betas,lambda, safe = TRUE)

Arguments

theta

(numeric vector) a vector with parameters values.

par.pos

(list) par.pos list.

locs

(matrix) spatial location matrix.

x_covariates

(data.frame) design matrix.

smooth.limits

(numeric vector) smooth.limits.

z

(numeric vector) a vector of observed values.

n

(integer) dim(z)[1].

x_betas

(matrix) or (data.frame) design matrix for the spatial mean.

lambda

(numeric) regularization parameter.

safe

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

Value

value

Author(s)

Federico Blasi


[Package cocons version 0.1.4 Index]