bayesnecgroupfit of models fitted separately at each level of a factorR/bayesnecgroupfit-class.R
bayesnecgroupfit-class.RdReturned by bnec_group. Each element of fits is an
ordinary bayesnecfit or bayesmanecfit, so
everything that works on those works per level.
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.
fitsA named list of fits, one per level.
group_varThe name of the grouping column.
levelsThe factor levels, in order.
formulaThe bayesnecformula fitted at every level.
dataThe full data.frame, all levels.
familyThe family, chosen once and shared by every level.
nThe number of observations per level.
weights_methodThe model-averaging weighting requested of
bnec_group, which crossed_group_weights checks
against what the fits themselves carry.
level_seedsThe 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.