R: Function to Check the Adequation of the Second Derivatives
checkAdequation
R Documentation
Function to Check the Adequation of the Second Derivatives
Description
Check the adequation of the second derivatives (hessian) for computation
of variance and covariance. Use inside the function
m4plEstimateMore to assure that computations can be applied to
this second derivative. Problems encountered can be of not positive definitetess,
singular matrix, diagonal not complitely positive. In these cases inversion
of the matrix is not posssible or variances cannot be computed from the
inverse of the diagonal.
Usage
checkAdequation(x)
Arguments
x
matrix: second derivative (hessian).
Value
isNumbers
logical: check if the elements of the x matrix are all numerics.
correctClass
logical: check if the the x matrix is of class matrix.
squareMatrix
logical: check if the the x matrix is square.
diagPositive
logical: check if the elements of the x matrix are all positive and > 0.
positiveDefinite
logical: check if the the x matrix is positiveDefinite.
nonSingular
logical: check if the the x matrix is nonSingular.
Author(s)
Gilles Raiche, Universite du Quebec a Montreal (UQAM),