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

Request: SEM with long-data #283

Open
akarlinsky opened this issue Jun 23, 2023 · 1 comment
Open

Request: SEM with long-data #283

akarlinsky opened this issue Jun 23, 2023 · 1 comment

Comments

@akarlinsky
Copy link

akarlinsky commented Jun 23, 2023

In Stata, it's possible to fit SEM models with longitudinal data, making syntax much shorter (implicitly constraining coefficients to be identical across time of course). Making this possible in lavaan would be great!
For example, instead of
dem2 ~ dem1
dem3 ~ dem2
dem4 ~ dem3
dem5 ~ dem4
...

we can write:
dem ~ lag(dem)

which is much easier and less error-prone, especially if there are many time-periods.

@yrosseel
Copy link
Owner

Yes, I like this. This will not happen soon, but I will leave this issue open as a reminder.

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

No branches or pull requests

2 participants