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

Estimate error with type = mixed #85

Open
tsbaguley opened this issue Mar 9, 2022 · 1 comment
Open

Estimate error with type = mixed #85

tsbaguley opened this issue Mar 9, 2022 · 1 comment

Comments

@tsbaguley
Copy link

I keep getting this error if I try to use type="mixed".

fit_oc <- estimate(dvp_oc, type = "mixed", prior_sd = 0.25)
BGGM: Posterior Sampling
0% 10 20 30 40 50 60 70 80 90 100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Error in estimate(dvp_oc, type = "mixed", prior_sd = 0.25) :
wishrnd(): given matrix is not symmetric positive definite

The variables have a lot of missing data so I've also tried bggm_missing where I get this (sometimes straight away and sometimes not):

Error in estimate(as.matrix(subset(Y, .imp == x)[, -1]), iter = iter, :
wishrnd(): given matrix is not symmetric positive definite

Any advice on what might be causing it?

The models estimate Ok with type-continuous, but have a mix of continuous, ordinal and binary vars (coded as ordinal).

@donaldRwilliams
Copy link
Owner

hi. I am not sure. it might just be too much that it is having a hard time sampling. Ill take a look on my end

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

2 participants