[Bug]: Multiple regression SEM - Error: lavaan->lav_samplestats_icov(): sample covariance matrix is not positive-definite #3117
Labels
Module: jaspSem
OS: Windows 11
Waiting for requester
If waiting for a long time it is reasonable to close an issue
JASP Version
0.19.3
Commit ID
No response
JASP Module
SEM
What analysis are you seeing the problem on?
multiple regression
What OS are you seeing the problem on?
Windows 11
Bug Description
Error: lavaan->lav_samplestats_icov():
sample covariance matrix is not positive-definite
Stack trace
.semComputeResults(modelContainer, dataset, options)
lavaan::sem(model = originalSyntax, data = dataset, group = options[['group']])
eval(sc, parent.frame())
eval(sc, parent.frame())
lavaan::lavaan(model = originalSyntax, data = dataset, group = options[['group']], model.type = 'sem')
lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats, lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V, NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean, sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names, ov.names.x = ov.names.x, lavpartable = lavpartable)
lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V, NACOV = NACOV)
lav_samplestats_icov(COV = cov[[g]], ridge = 1e-05, x.idx = x.idx[[g]], ngroups = ngroups, g = g)
lav_msg_stop(gettext('sample covariance matrix is not positive-definite'))
stop(msg, call. = FALSE, domain = NA)
To receive assistance with this problem, please report the message above at: https://jasp-stats.org/bug-reports
Expected Behaviour
Final Checklist
The text was updated successfully, but these errors were encountered: