DistanceDevelopment / MCDS_mrds_compare

1 stars 0 forks source link

Error in t(partial) %*% vcov #7

Closed LHMarshall closed 1 year ago

LHMarshall commented 1 year ago

The following error was occuring sometimes:

# Fitting half-normal key function with Hermite(4,6) adjustments
# Warning: First partial hessian is singular; using second-partial hessian
# Warning: First partial hessian is singular; using second-partial hessian
# AIC= 932.07
# Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x),  : 
#   'data' must be of a vector type, was 'NULL'
# Error in t(partial) %*% vcov : 
#   requires numeric/complex matrix/vector arguments

When calculation of the first partial hessian fails it looks to the second partial hessian... this either didn't work either or is NULL.

LHMarshall commented 1 year ago

Now giving a nice fail

image

See commit https://github.com/DistanceDevelopment/mrds/commit/c8de78c3d494a8386dba99f352e5dd365078f3b3