-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error: Unable to compute predicted values with this model. This error can arise when insight::get_data()
is unable to extract the dataset from the model object
#389
Comments
Do you have a reproducible example? Furthermore, have you tried to convert the tibble |
Thanks for your rapid reply! |
For some reason, dropbox server don't seem to work (temporarily?). Could you zip the file and add as attachment to this thread? |
tmp.zip |
hm, can't reproduce, works for me: library(easystats)
#> # Attaching packages: easystats 0.6.0.13
#> ✔ bayestestR 0.13.1.7 ✔ correlation 0.8.4.9000
#> ✔ datawizard 0.9.0.1 ✔ effectsize 0.8.6.1
#> ✔ insight 0.19.5.13 ✔ modelbased 0.8.6.4
#> ✔ performance 0.10.6 ✔ parameters 0.21.2.6
#> ✔ report 0.5.7.11 ✔ see 0.8.0.5
library(ggeffects)
#>
#> Attaching package: 'ggeffects'
#> The following object is masked from 'package:easystats':
#>
#> install_latest
library(lme4)
#> Loading required package: Matrix
load("c:/Users/mail/Desktop/tmp.rda")
LME_model <- lmer(Y ~ YEAR * Group + age + duration_yrs + SEX + (1 + YEAR | PATNO), tmp)
mydf <- ggpredict(LME_model, c("YEAR", "Group"))
plot(mydf) hypothesis_test(mydf)
#> # Linear trend for YEAR
#>
#> Group | Contrast | 95% CI | p
#> -------------------------------------------
#> low-high | -0.10 | [-0.24, 0.04] | 0.150 Created on 2023-10-12 with reprex v2.0.2 Can you try following two steps:
and then retry? |
It works after |
Hi, I encountered the following error while attempting to calculate p-values for the interaction between two groups in a linear mixed-effect model using hypothesis_test.
The relevant code is provided below:
The text was updated successfully, but these errors were encountered: