f_lik_hess: Calculates the Hessian of the full log-likelihood

View source: R/RcppExports.R

f_lik_hessR Documentation

Calculates the Hessian of the full log-likelihood

Description

Calculates the Hessian of the full log-likelihood

Usage

f_lik_hess(
  B,
  N_dim,
  N_func,
  func_def,
  N_var_func,
  col_id,
  N_par,
  sum_N_par,
  cov_data,
  Z,
  X,
  y,
  u,
  cov_par_fix,
  family,
  link,
  start,
  lower,
  upper,
  tol = 1e-04,
  importance = FALSE
)

Arguments

B

Integer specifying the number of blocks in the matrix

N_dim

Vector of integers, which each value specifying the dimension of each block

N_func

Vector of integers specifying the number of functions in the covariance function for each block.

func_def

Matrix of integers where each column specifies the function definition for each function in each block.

N_var_func

Matrix of integers of same size as 'func_def' with each column specying the number of variables in the argument to each function in each block

col_id

3D array (cube) of integers of dimension length(func_def) x max(N_var_func) x B where each slice the respective column indexes of 'cov_data' for each function in the block

N_par

Matrix of integers of same size as 'func_def' with each column specifying the number of parameters in the function in each block

cov_data

3D array (cube) holding the data for the covariance matrix where each of the B slices is the data required for each block

Z

Matrix Z of the GLMM

X

Matrix X of the GLMM

y

Vector of observations

u

Matrix of samples of the random effects. Each column is a sample.

cov_par_fix

A vector of covariance parameters for importance sampling

family

Character specifying the family

link

Character specifying the link function

start

Vector of starting values for the optimisation

lower

Vector of lower bounds for the model parameters

upper

Vector of upper bounds for the model parameters

trace

Integer indicating what to report to the console, 0= nothing, 1-3=detailed output

Value

A matrix of the Hessian for each parameter


samuel-watson/glmmr documentation built on July 27, 2022, 10:30 p.m.