diagnostics function

Diagnostic functions

Diagnostic functions

The 'checkJacobian' function can be used to check if the analytic gradient / Jacobian is aligned with the numerically approximated gradient / Jacobian, and the 'checkFisher' function can be used to check if the analytic Hessian is aligned with the numerically approximated Hessian.

checkJacobian(x, f = "default", jac = "default", transpose = FALSE, plot = TRUE, perturbStart = FALSE, method = "Richardson") checkFisher(x, f = "default", fis = "default", transpose = FALSE, plot = TRUE, perturbStart = FALSE)

Arguments

  • x: A 'psychonetrics' object
  • f: A custom fit function or the psychonetrics default fit function (default).
  • jac: A custom Jacobian function or the psychonetrics default Jacobian function (default).
  • fis: A custom Fischer information function or the psychonetrics default Fischer information function (default).
  • transpose: Should the numeric Jacobian be transposed?
  • plot: Should a diagnostic plot be produced?
  • perturbStart: Should start values be perturbed (only used in development)
  • method: Numeric derivative method (default: Richardson)

Author(s)

Sacha Epskamp

  • Maintainer: Sacha Epskamp
  • License: GPL-2
  • Last published: 2024-06-20