Learn R Programming

glmmTMB (version 1.0.2.1)

formatVC: Format the 'VarCorr' Matrix of Random Effects

Description

"format()" the 'VarCorr' matrix of the random effects -- for print()ing and show()ing

Usage

formatVC(
  varcor,
  digits = max(3, getOption("digits") - 2),
  comp = "Std.Dev.",
  formatter = format,
  useScale = attr(varcor, "useSc"),
  ...
)

Arguments

varcor

a VarCorr (-like) matrix with attributes.

digits

the number of significant digits.

comp

character vector of length one or two indicating which columns out of "Variance" and "Std.Dev." should be shown in the formatted output.

formatter

the function to be used for formatting the standard deviations and or variances (but not the correlations which (currently) are always formatted as "0.nnn"

useScale

whether to report a scale parameter (e.g. residual standard deviation)

...

optional arguments for formatter(*) in addition to the first (numeric vector) and digits.

Value

a character matrix of formatted VarCorr entries from varc.