{Dcolumn} in Latex/Sweave preamble.
lm or glm. The model-object (a list) may also optionally contain an item named se: model$se may be a vector of standard errors, or a variance-covariance matrix, in which case the square root of the diagonal is used as the se argument.}
... contains an se element and se element (all use model vcov) but se="robust", labeling is simply summary.lm, except that a superscript dagger is used instead
of a dot for $p < .10$. Here stars is 1, what level should be used
for the test to reject statistical insignificance and bestow the
glittering star? Disable decoration entirely by specifying
lev=0. Default=.05.}
spans with
alignment given here, as are model terms (leftmost column of
table). Default = left .
se.note and stars.note to
generate notes about the standard errors and indicators of
statistical significance. Other notes can be named function calls or
simple character strings.}
omitcoef and order settings
with automatic symbolic naming before supplying a vector of coef.rows to 1 places it in a
new column to the right instead.}
multicolumn
spans: typically only the model names at the top, but, in the case of
coef.rows=1, the model.info is also aligned beneath both
columns. Default=
hspace (number+tex units such as
em) to insert between each model column(s). Intended mainly to
separate models from each other when coef.rows=1. Default=NULL}
, empty and
, or only the . When called from within an Sweave document
one would typically write such elements in the Sweave document, make sure to set the code chunk option
results=tex. Default = FALSE}
Sweave is false -- that is, if
apsrtable is supposed to wrap the output in the float
environment, float allows you to specify an arbitrary custom
float environment. Some useful ones include MinionPro latex package. Default = FALSE}
}
writeLines for inclusion via
\input{} in latex documents.apsrtable() will produce side-by-side output in well-formatted
LaTeX using either automated numbering or user-supplied model names
and Dcolumn decimal-aligned columns. Terms are matched across
rows, with options for determining the order of terms. Nuisance terms
(e.g. controls, or other quantities not of primary interest) may be
omitted. Standard errors of parameter estimates are placed below
estimates and in parentheses, with the option for the user to supply a
replacement vector of standard errors or a replacement
variance-covariance matrix, such as one estimated using the
sandwich package. By default a single star denotes statistical
significance at the .05 level, with the option to employ further
decorations or specify another arbitrary level for the test. Finally,
some model diagnostics are included along with a (somewhat) flexible
means to program or include different items depending on model object
class.
Model diagnostic information (modelInfo methods defined for model summaries.
These methods return lists of S3 class model.info, named formatted (character) elements. To
include fit information that is available from fitted model objects
but not their summaries, you have to amend the relevent summary method
as well as the modelInfo method.
Included are modelInfo functions for lm, glm, and tobit objects. Please email the author any modelInfo
functions you write for different model objects for inclusion in
future releases.
[object Object]
modelInfo for changing the model diagnostic
summary information presented and how to include it for different
classes of model objects; notefunctions for functions to
produce dynamic apsrtableSummary for creating model summaries that
produce results compatible with what apsrtable expects.