Debian Codegraph @

man/styles.Rd

raw
1 \name{styles}
2 \alias{coef.style}
3 \alias{factor.style}
4 \alias{setCoefTemplate}
5 \alias{getCoefTemplate}
6 \alias{getSummaryTemplate}
7 \alias{setSummaryTemplate}
8 \alias{summaryTemplate}
9 \title{Formatting Styles for Coefficients, Factor Contrasts, and Summary Statistics}
10 \description{
11 Methods for setting and getting templates for formatting
12 model coefficients and summaries for use in \code{\link{mtable}}.
13 }
14 \usage{
15 setCoefTemplate(...)
16 getCoefTemplate(style)
17 getSummaryTemplate(x)
18 setSummaryTemplate(...)
19 summaryTemplate(x)
20 }
21 \arguments{
22 \item{...}{sevaral tagged arguments; in case of \code{setCoefTemplate} the
23 tags specify the \code{coef.style}s, in case of \code{setSummaryTemplate}
24 they specify model classes.
25 The associated values are \link{template}s.}
26 \item{style}{a character string with the name of a coefficient style,
27 if left empty, all coefficient templates are returned. }
28 \item{x}{a model or a name of a model class, for example \code{"lm"} or \code{"glm"};
29 if left empty, all summary templates are returned.}
30 }
31 \details{
32 The style in which model coefficients are formatted by \code{\link{mtable}}
33 is by default selected from the \code{coef.style} setting of \code{\link{options}},
34 "factory-fresh" setting being \code{options(coef.style="default")}.
35
36 The appearance of factor levels in an \code{\link{mtable}}
37 can be influenced by the \code{factor.style} setting of \code{\link{options}}.
38 The "factory-fresh" setting is \code{options(factor.style="($f): ($l)")},
39 where \code{($f)} stands for the factor name and \code{($l)} stands
40 for the factor level. In case of treatment contrasts, the baseline level
41 will also appear in an \code{\link{mtable}} separated from the current
42 factor level by the \code{baselevel.sep} setting of \code{\link{options}}.
43 The "factory-fresh" setting is \code{options(baselevel.sep="-")},
44
45 Users may specify additional coefficient styles by a call to \code{setCoefTemplate}.
46
47 In order to adapt the display of summary statistics of other model classes, users need to
48 set a template for model summaries via a call to \code{setSummaryTemplate}
49 or to define a method of the generic function \code{summaryTemplate}.
50 }
51
52 \keyword{misc}