Learn R Programming

cocons (version 0.1.5)

GetNeg2loglikelihoodREML: GetNeg2loglikelihoodREML

Description

compute the negative 2 log REML likelihood based on theta

Usage

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

Value

value

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.

x_betas

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

smooth.limits

(numeric vector) smooth.limits.

z

(numeric vector) a vector of contrasts.

n

(integer) 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