Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minDegree() in lolog() gives exactly singular matrix error #11

Open
thelondonsimon opened this issue Jul 30, 2024 · 0 comments
Open

minDegree() in lolog() gives exactly singular matrix error #11

thelondonsimon opened this issue Jul 30, 2024 · 0 comments

Comments

@thelondonsimon
Copy link

I am trying to fit an undirected network using lolog, in which my observed network is the largest component subgraph in a larger network.

When I specify the minDegree(1) network statistic (from LologExtension), lolog frequently (but not always if used in conjunction with just an edges() term) reports an error as it approaches convergence:

library(LologExtension)
fit <- lolog(mynet ~ edges + minDegree(1), verbose = 3)
...
Iteration XX
Error in solve.default(var(auxStats)) : 
  Lapack routine dgesv: system is exactly singular: U[2,2] = 0
Objective: NaN
Error in if (hsCount < nHalfSteps && !is.null(lastTheta) && (invFailed || : 
  missing value where TRUE/FALSE needed
In addition: Warning message:
In lolog(mynet ~ edges + minDegree(1), verbose = 3) : 
  Singular statistic covariance matrix. Using diagnoal.

Are there any approaches which can avoid this error?
While lolog will sometimes fit the model above without error, I've never been able to do so when also including a gwesp() term.

Thanks, Simon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant