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

Using test,modmed on mixed effect models #69

Open
TanFuMiao opened this issue Sep 5, 2024 · 0 comments
Open

Using test,modmed on mixed effect models #69

TanFuMiao opened this issue Sep 5, 2024 · 0 comments

Comments

@TanFuMiao
Copy link

TanFuMiao commented Sep 5, 2024

I am trying to compare the mediation effect between two levels of my moderator using test.modmed(). However, it does not seem to work on lmer() models.

test.modmed(modmed.model,
covariates.1=list(sex=1),
covariates.2=list(sex=0),
sims = 5000)
Error in test.modmed.default(modmed.model, covariates.1 = list(sex = 1), :
currently no test.modmed method exists for the input object.

When I changed the model to lm(), it works fine, So I can't seem to figure out the issue.

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

1 participant