Learn R Programming

memisc (version 0.11-9)

styles: Formatting styles for coefficients and factor contrasts for use with "mtable"

Description

Methods for setting and getting templates for formatting model coefficients and summaries.

Usage

setCoefTemplate(...)
getCoefTemplate(style)
getSummaryTemplate(x)
setSummaryTemplate(...)

Arguments

...
sevaral tagged arguments; in case of setCoefTemplate the tags specify the coef.styles, in case of setSummaryTemplate they specify model classes the associated values are t
style
a character string with the name of a coefficient style, if left empty, all coefficient templates are returned.
x
a model or a name of a model class, e.g. "lm" or "glm"; if left empty, all summary templates are returned.

Details

The style in which model coefficients are formatted by mtable is by default selected from the coef.style setting of options, "factory-fresh" setting being options(coef.style="default").

The appearance of factor levels in an mtable can be influenced by the factor.style setting of options. The "factory-fresh" setting is options(factor.style="($f): ($l)"), where ($f) stands for the factor name and ($l) stands for the factor level. In case of treatment contrasts, the baseline level will also appear in an mtable separated from the current factor level by the baselevel.sep setting of options. The "factory-fresh" setting is options(baselevel.sep="-"),

Users may specify additional coefficient styles by a call to setCoefTemplate. In order to adapt mtable to other model classes, users need to set a template for model summaries via a call to setSummaryTemplate.