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

modelsearch output #6

Closed
fishpm opened this issue May 15, 2017 · 1 comment
Closed

modelsearch output #6

fishpm opened this issue May 15, 2017 · 1 comment

Comments

@fishpm
Copy link

fishpm commented May 15, 2017

Hi Klaus,
The function modelsearch in lava (v 1.4.7) appears to return each additional model path 3 times. Adjusted p-values appear sensitive to this redundancy.

m <- lvm(c(v1, v2, v3, v4) ~ u)
latent(m) <- ~u
dtempo <- sim(m, 1e2)
e <- estimate(m, dtempo)
esearch <- modelsearch(e)
esearch

Thanks,
Patrick

@kkholst
Copy link
Owner

kkholst commented May 23, 2017

The current implementation looks at all possible linear extensions of the model (both directed yx, xy, and un-directed/correlation x~~y). In some cases adding a direct path will not be equivalent (i.e., not lead to similar likelihood) to the model where an undirected path/correlation is added between two nodes. To only search among the undirected paths (the old behaviour) you can use the syntax:
modelsearch(e, type="cor").

@kkholst kkholst closed this as completed May 23, 2017
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