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

report does not work with BayesFactor models #410

Open
M-Colley opened this issue Dec 10, 2023 · 0 comments
Open

report does not work with BayesFactor models #410

M-Colley opened this issue Dec 10, 2023 · 0 comments

Comments

@M-Colley
Copy link
Contributor

Describe the bug
in validObject(.Object) :
ungültiges Objekt der Klasse “dsparseModelMatrix”: superclass "xMatrix" not defined in the environment of the object's class

To Reproduce
This is the code to reproduce the issue:

library(report)
library(readxl)
library(BayesFactor)
library(bayestestR)
library(httr)


# URL of the Excel file
url <- "https://raw.githubusercontent.com/M-Colley/3d-display-comp-vehicle/main/3d-comp-vehicle-main.xlsx"

# Use GET to access the file and save the content to a temporary file
temp_file <- tempfile(fileext = ".xlsx")
download.file(url, temp_file, mode = "wb")

# Use read_excel to read the file
main_df <- read_excel(temp_file)

# View the data
head(main_df)

# Optionally, delete the temporary file if no longer needed
unlink(temp_file)


main_df <- as.data.frame(main_df)

main_df$UserID <- as.factor(main_df$UserID)
main_df$ConditionID <- as.factor(main_df$ConditionID)

# this is the issue
BayesFactor::anovaBF(TLX1 ~ ConditionID + UserID, data = main_df, whichRandom="UserID")  |> bayesfactor_models() |> report()

Expected behaviour
I would have expected report to be able to report this (see https://easystats.github.io/report/reference/report.bayesfactor_models.html). This had already worked in previous versions. (Unofrtunately, i cannot state which change in packages caused this break)

Specifications (please complete the following information):

  • All packages are up to date:
    Analyses were conducted using the R Statistical language (version 4.3.2; R Core Team, 2023) on Windows 11 x64 (build 22631)
  • effectsize (version 0.8.6; Ben-Shachar MS et al., 2020)
  • easystats (version 0.7.0; Lüdecke D et al., 2022)
  • see (version 0.8.1; Lüdecke D et al., 2021)
  • insight (version 0.19.7; Lüdecke D et al., 2019)
  • bayestestR (version 0.13.1; Makowski D et al., 2019)
  • modelbased (version 0.8.6; Makowski D et al., 2020)
  • report (version 0.5.8; Makowski D et al., 2023)
  • BayesFactor (version 0.9.12.4.6; Morey R, Rouder J, 2023)
  • R (version 4.3.2; R Core Team, 2023)
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