dot-getHessian: .getHessian

.getHessianR Documentation

.getHessian

Description

returns the Hessian of a model of class Rcpp_SEMCpp. This is the internal model representation. Models of this class can be generated with the lessSEM:::.SEMFromLavaan-function. The function is adapted from lavaan::lav_model_hessian.

Usage

.getHessian(SEM, raw, eps = 1e-07)

Arguments

SEM

model of class Rcpp_SEMCpp

raw

controls if the internal transformations of lessSEM should be used. lessSEM will use an exponential function for all variances to avoid negative variances. When set to TRUE, the gradients will be given for the internal parameter representation. Set to FALSE to get the usual gradients

eps

eps controls the step size of the numerical approximation.

Value

matrix with second derivatives of the -2log-Likelihood with respect to each parameter


lessSEM documentation built on May 29, 2024, 7:10 a.m.