report icon indicating copy to clipboard operation
report copied to clipboard

Add support for [mediate] objects

Open rempsyc opened this issue 9 months ago • 0 comments

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.

rempsyc avatar Mar 23 '25 15:03 rempsyc