The numeric table answers "is any group off?"; the plot answers "by how much, and in which direction?", which is the question that decides whether it matters. Each panel shows, per group of the predictor, the observed statistic against the 95% span of what the fitted model simulates. A point outside its interval is a group the model does not reproduce. A group with one observation appears in the location panel only, because its residual standard deviation is undefined.

# S3 method for class 'checkfit'
plot(x, ...)

Arguments

x

An object of class checkfit, from check_fit.

...

Unused.

Value

A ggplot object.

Details

Location and scale are drawn in separate panels, because a model can reproduce the mean of every group while simulating far more spread than the data show.

The control is drawn differently because it is not just another group: nsec reads its reference from the control, so a discrepancy there moves a reported no-effect concentration in a way that a discrepancy at the top of the curve does not.

Examples

if (FALSE) { # \dontrun{
library(bayesnec)
plot(check_fit(manec_example))
} # }