Error in `eval(mf, parent.frame())`: object 'jobs' not found

b <- lm(job_seek ~ treat + econ_hard + sex + age, data = jobs)
c <- lm(depress2 ~ treat + job_seek + econ_hard + sex + age, data = jobs)
m1 <- mediation::mediate(b, c, sims = 50, treat = "treat", mediator = "job_seek")
b2 <- lm(job_seek ~ educ + sex, data = jobs)
c2 <- lm(depress2 ~ educ + job_seek + sex, data = jobs)
treat = "educ", mediator = "job_seek", sims = 50,
control.value = "gradwk", treat.value = "somcol"
expect_equal(params$Parameter, c("ACME", "ADE", "Total Effect", "Prop. Mediated"))
## FIXME: bug in the latest CRAN version of the mediation package
job_disc ~ treat + econ_hard + sex + age,
work1 ~ treat + job_disc + econ_hard + sex + age,
m3 <- mediation::mediate(b.ord, d.bin, sims = 50, treat = "treat", mediator = "job_disc")
"ACME (control)", "ACME (treated)", "ADE (control)", "ADE (treated)",
"Total Effect", "Prop. Mediated (control)", "Prop. Mediated (treated)",
"ACME (average)", "ADE (average)", "Prop. Mediated (average)"
"control", "treated", "control", "treated", "Total Effect",
"control", "treated", "average", "average", "average"