Question Details

No question body available.

Tags

r

Answers (1)

Accepted Answer Available
Accepted Answer
January 20, 2026 Score: 5 Rep: 18,616 Quality: High Completeness: 50%

From a code standpoint ("why is the hessian matrix just zeros for my function?"), your function indexes on 0, which R doesnt support, and so x[0] will return numeric(0). Change your function to:

NeglogLikNorm