Skip to content

check_predictions() does not work objects of class _multinom, created with tidymodels #452

@davidkane9

Description

@davidkane9
library(tidyverse)
library(tidymodels)
#> Registered S3 method overwritten by 'future':
#>   method               from      
#>   all.equal.connection parallelly
library(easystats)
#> # Attaching packages: easystats 0.7.4 (red = needs update)
#> ✖ bayestestR  0.15.3   ✔ correlation 0.8.7 
#> ✖ datawizard  1.0.2    ✖ effectsize  1.0.0 
#> ✖ insight     1.2.0    ✖ modelbased  0.11.0
#> ✖ performance 0.13.0   ✖ parameters  0.25.0
#> ✔ report      0.6.1    ✔ see         0.11.0
#> 
#> Restart the R-Session and update packages with `easystats::easystats_update()`.

fit_obj <- multinom_reg() |>
  fit(species ~ bill_length_mm, data = penguins)

check_predictions(fit_obj)
#> Error: Could not simulate responses. Maybe there is no `simulate()` for objects
#>   of class `_multinom`?

check_predictions(extract_fit_engine(fit_obj))
#> Error: Could not simulate responses. Maybe there is no `simulate()` for objects
#>   of class `multinom`?

Created on 2025-06-23 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions