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

semtree does not appear to recognise interaction terms in lavaan #63

Open
cicadawing opened this issue Feb 16, 2024 · 1 comment
Open
Assignees
Labels

Comments

@cicadawing
Copy link

Hi there!

Love the package
Works well for me, except when I specify an interaction term while writing my model in lavaan
E.g.
lav_obj <- 'y ~ x +z + x:z'
run_lav_obj <- sem(model = lav_obj , data = Data)

Above terminates fine. But when I run:
tree <- semtree(model=run_lav_obj , data=Data,
verbose = T, predictors=c('c'))

I get an error where it looks as though it is searching for the column x:z - which is created in the lavaan object.

@brandmaier brandmaier self-assigned this Feb 16, 2024
@brandmaier brandmaier added the bug label Feb 16, 2024
@brandmaier
Copy link
Owner

Thanks for reporting this. I confirm that this is a bug in the current version.

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

No branches or pull requests

2 participants