Tabulates the group-level standard deviations of every equation of a fit, such as the single deviation of an ogl(plate) term or the one per parameter of a pgl(plate) term, beside that equation's model weight. summary does not report them.

group_level_sd(x)

# S3 method for class 'bayesnecfit'
group_level_sd(x)

# S3 method for class 'bayesmanecfit'
group_level_sd(x)

# S3 method for class 'bayesnecjointfit'
group_level_sd(x)

# S3 method for class 'bayesnechurdlefit'
group_level_sd(x)

# S3 method for class 'bayesnecgroupfit'
group_level_sd(x)

# Default S3 method
group_level_sd(x)

Value

A data.frame with one row per equation, grouping, parameter and by level, and columns model, wi, group, by, parameter, Estimate, Q2.5 and Q97.5. The by column is empty for ordinary grouping terms and names the variable and level (for example, h=A) for a gr(g, by = h) term. wi is 1 for a bayesnecfit. A fit with no group-level term gives a table with no rows, and a message. For a bayesnecgroupfit, the same table with a leading level column; each weight is from that level's own model set. For a bayesnechurdlefit, a named list of two such tables, growth and survival. For a bayesnecjointfit, one table for the fit, with wi 1: a group-level term of a joint refit is shared by every level, which bnec_joint allows only where every level is fitted one equation.

The diagnostic data frame for this single fit.

The diagnostic data frame with model weights for this set.

The diagnostic data frame for the joint fit.

A named list of growth and survival diagnostic tables.

A diagnostic data frame with a leading level column.

An error naming the unsupported class.

Details

Each equation of a model set estimates its own group-level standard deviations. Read each one against the weight of the equation it was computed on: a deviation from an equation with almost no weight describes that equation's curve and says little about the model-averaged estimates.

parameter names the non-linear parameter the deviation applies to, as brms names it in VarCorr. ogl is the deviation on the whole curve. Where the link permits the fitted mean to leave the family's support and the equation permits a log or logit transform, ogl is applied on that scale. Otherwise it is added on the linear predictor scale. A deviation on top or bot is named topgl or botgl when the link permits the mean to leave its support; it is then applied on the log or log-odds scale. Other deviations are added on the scale of the quantity they apply to. See bayesnecformula.

Estimate is the posterior median, as in ecx and dispersion, and Q2.5 and Q97.5 bound the 95% credible interval. VarCorr reports the posterior mean instead.

Examples

if (FALSE) { # \dontrun{
library(bayesnec)
data(nec_data)
nec_data$plate <- factor(rep(letters[1:4], length.out = nrow(nec_data)))
fit <- bnec(y ~ crf(x, c("nec4param", "ecx4param")) + ogl(plate),
            data = nec_data)
group_level_sd(fit)
} # }