Anova.lme: Anova Function for lme Models

Description Usage Arguments See Also Examples

Description

This is a wrapper to anova.lme from package nlme and is coded similar to Anova from car as it produces marginal tests by default.

Usage

1
2
## S3 method for class 'lme'
Anova(mod, type = c("marginal", "sequential"), ...)

Arguments

mod

linear mixed model fitted with package nlme.

type

type of anova, either marginal (default) or sequential.

...

further arguments to be passed to anova.lme

See Also

Anova (package car)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Example requires package nlme to be installed and loaded
if (require("nlme")) {
    ## Load data set Orthodont
    data(Orthodont, package = "nlme")

    ## Fit a model for distance with random intercept for Subject
    mod <- lme(distance ~ age + Sex, data = Orthodont, random = ~ 1 | Subject)

    Anova(mod)
}

Example output

Loading required package: car
Loading required package: xtable

Attaching package: 'papeR'

The following object is masked from 'package:utils':

    toLatex

Loading required package: nlme
            numDF denDF  F-value p-value
(Intercept)     1    80 450.8422  <.0001
age             1    80 114.8383  <.0001
Sex             1    25   9.2921  0.0054

papeR documentation built on May 2, 2019, 4:55 p.m.