Learn R Programming

scov (version 0.1.2)

GradLogLikParm_02: Calculates the gradient of the loglikelihood or the gradient of Sigma

Description

Calculates the gradient of the loglikelihood or the gradient of Sigma

Usage

GradLogLikParm_02(
  adj_positions,
  parm,
  matList,
  dataset,
  interaction_effects = list(),
  return_Sigma_der = FALSE
)

Value

the gradient of the loglikelihood or the gradient of Sigma

Arguments

adj_positions

positions of the spatial effect (if embedded)

parm

the parameter

matList

the list of matrices (pairwise + spatial)

dataset

an n (observations) x d (dimensions) matrix

interaction_effects

list of interaction effects (vectors of names)

return_Sigma_der

returns the gradient of Sigma if TRUE