{"action":"opened","issue":{"url":"https://api.github.com/repos/yrosseel/lavaan/issues/42","labels_url":"https://api.github.com/repos/yrosseel/lavaan/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/yrosseel/lavaan/issues/42/comments","events_url":"https://api.github.com/repos/yrosseel/lavaan/issues/42/events","html_url":"https://github.com/yrosseel/lavaan/issues/42","id":101199063,"number":42,"title":"Lavaan warns about non-positive definite LV covariance matrix, but inspect(fit,\"cov.lv\") gives only positive eigen values","user":{"login":"mronkko","id":566094,"avatar_url":"https://avatars.githubusercontent.com/u/566094?v=3","gravatar_id":"","url":"https://api.github.com/users/mronkko","html_url":"https://github.com/mronkko","followers_url":"https://api.github.com/users/mronkko/followers","following_url":"https://api.github.com/users/mronkko/following{/other_user}","gists_url":"https://api.github.com/users/mronkko/gists{/gist_id}","starred_url":"https://api.github.com/users/mronkko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mronkko/subscriptions","organizations_url":"https://api.github.com/users/mronkko/orgs","repos_url":"https://api.github.com/users/mronkko/repos","events_url":"https://api.github.com/users/mronkko/events{/privacy}","received_events_url":"https://api.github.com/users/mronkko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-15T18:48:22Z","updated_at":"2015-08-15T18:48:22Z","closed_at":null,"body":"Hi\r\n\r\nWhen I run\r\n\r\n´´´´\r\nload(\"~/Desktop/data.Rdata\")\r\n\r\nfit <- sem(modelSpecification, sample.cov=cov(data),\r\n    sample.nobs = nrow(data),\r\n    sample.cov.rescale = FALSE, \r\n    se = \"none\",\r\n    meanstructure = FALSE,\r\n    fixed.x = FALSE)\r\n\r\neigen(inspect(fit,\"cov.lv\"))\r\n´´´´\r\n\r\nI get\r\n\r\n´´´´\r\nWarning message:\r\nIn lavaan::lavaan(model = modelSpecification, meanstructure = FALSE,  :\r\n  lavaan WARNING: covariance matrix of latent variables is not positive definite; use inspect(fit,\"cov.lv\") to investigate.\r\n> eigen(inspect(fit,\"cov.lv\"))\r\n$values\r\n[1] 1.91571541 0.64419516 0.36182077 0.26453840 0.18083462 0.14478385 0.09256237 0.02027073\r\n´´´´\r\n\r\n\r\nYou can download the data and model specification here\r\n\r\nhttps://www.dropbox.com/s/2teibj6v3bq8ofe/data.Rdata?dl=0\r\n\r\n(The model does not make much sense, but that is unrelated to this report.)\r\n\r\n"}}