formatVC: Format the 'VarCorr' Matrix of Random Effects

Description Usage Arguments Value

Description

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

Usage

1
2
3
4
5
6
7
8
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.


glmmTMB documentation built on July 20, 2021, 9:06 a.m.