Skip to content
Prev 52140 / 63421 Next

summary() dispatch puzzle

I'm not doing a good job at explaining.  See inline below ...
On 16-07-18 11:02 AM, Martin Maechler wrote:
This is as expected.  What's going on here is that I'm trying to get
the p-value into the tidied object.   You really have to debug *into*
the function to see the problem.  I've tried to remedy this a bit in my
fork by adding a 'debug' argument:

devtools::install_github("bbolker/broom")
## ... re-load package or re-run session ...
tidy(fm1B,debug=TRUE)

produces

output from coef(summary(x)):
             Estimate Std. Error   t value
(Intercept) 251.40510   6.824556 36.838310
Days         10.46729   1.545789  6.771485


that is, when coef(summary(x)) is run *inside* the tidy.merMod function,
it calls summary.merMod rather than the summary method for
merModLmerTest objects ...
Sorry about that.  broom is fairly heavily integrated with the
tidyverse ...