latex.anova.lme: LaTeX ANOVA table for lme

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Generates LaTeX code for an ANOVA table from lme. Number of significant digits depends on standard deviation of the results. Significant p-values are shaded. The (Intercept) term is not printed.

Usage

1
2
3
## S3 method for class 'anova.lme'
latex(object, title = "", parameter, file = "",
  shadep = 0.05, caption = NULL, ctable = FALSE, where = "!htbp", ...)

Arguments

object

a fitted model object inheriting from class anova.lme, representing ANOVA of a mixed-effects model.

title

to be printed in upper left corner

parameter

label of the estimated parameter (required), used for caption and label of the table. Can have spaces. See also lmeLabel

file

output file name; default prints output to the standard output, which is the choice for Sweave.

shadep

table cells for p-values lower than this will be shaded; p-values for (Intercept) are never shaded.

caption

caption used for table; default caption is: Contrast table for <parameter> (model <formula>). Value in row (Intercept) gives base value for <reference values of variables>.

ctable

Uses ctable-formatting of LaTeX.

where

positioning parameter for LaTeX

...

Additional parameters passed to latex in Hmisc.

Value

Returns the result of the call to latex in Hmisc.

Note

The function is modelled after print.anova.lme from package nlme. Requires ctable and colortable in your Snw/tex file.

Author(s)

Dieter Menne, dieter.menne@menne-biomed.de

See Also

latex, latex.lme, lme

Examples

1
2
3
4
5
6
# Pinheiro/Bates page 47
library(nlme)
library(Hmisc)
fm1Oats <- lme(yield~ordered(nitro)*Variety, data=Oats,
  random = ~1|Block/Variety)
latex(anova(fm1Oats),parameter="Yield",file ="")

dmenne/dlatex documentation built on May 15, 2019, 9:32 a.m.