Skip to content

Add support for [mediate] objects #485

@rempsyc

Description

@rempsyc

Objects of class [mediate] are currently not supported:

library(mediation)
b <- lm(job_seek ~ treat + econ_hard + sex + age, data=jobs)
c <- lm(depress2 ~ treat + job_seek + econ_hard + sex + age, data=jobs)
contcont <- mediate(b, c, sims=50, treat="treat", mediator="job_seek")
report::report(contcont)
#> Error: Oops, objects of class [mediate] are not supported (yet) by report() :(
#> 
#> Want to help? Check out https://easystats.github.io/report/articles/new_models.html

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

Would be nice to support them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions