Returned by bnec_group. Each element of fits is an ordinary bayesnecfit or bayesmanecfit, so everything that works on those works per level.

Details

See methods(class = "bayesnecgroupfit") for an overview of available methods.

nec, ecx, nsec and ecnsec on a bayesnecgroupfit return a data.frame with one row per level: a level column; one numeric column per quantile, named as the same method names them on a single fit; and, after those, one character column per quantile, named bound_ followed by that quantile's column name, for example bound_Q97.5. A bound_ entry is ">=" or "<=" where the matching number is the end of the prediction range rather than a quantile, and "" where it is a quantile. These are the marks the level's own fit returns in attribute "censored_summary" and prints beside the number. Use pool to combine the levels; see bnec_group.

Slots

fits

A named list of fits, one per level.

group_var

The name of the grouping column.

levels

The factor levels, in order.

formula

The bayesnecformula fitted at every level.

data

The full data.frame, all levels.

family

The family, chosen once and shared by every level.

n

The number of observations per level.

weights_method

The model-averaging weighting requested of bnec_group, which crossed_group_weights checks against what the fits themselves carry.

level_seeds

The seed each level was fitted under, realised in the calling session before the levels were dispatched. Kept so that the realisation is recoverable from the fit rather than regenerated, for the reason expand_manec() stores w_draw_index beside w_draw_seed.