Learn R Programming

nmm (version 0.9)

gradient.nmm: Gradient with supplied coefficients

Description

Gradient with supplied coefficients

Usage

# S3 method for nmm
gradient(
  res,
  new_coef = NULL,
  separatenmm = FALSE,
  transform = FALSE,
  methodopt = "NA",
  ind_grad = FALSE
)

Arguments

res

result from nmm

new_coef

coefficients for which logLik should be calculated

separatenmm

return separatenmm LL for each equation

transform

to do quantile transformation

methodopt

"NA" means that automatic algorithm was used in maxLik, if equal to "BHHH" will return LL for each individual

ind_grad

get individual gradient values