ems: Expected Mean Squares for Anova

Description Usage Arguments Details Value

Description

Compute expressions for the expeted means squares in a mixed model.

Usage

1
2
ems(formula, data, random = NULL, type = c("III", "I", "II"),
  restricted = FALSE)

Arguments

formula

A formula describing the model.

data

A data frame in which the variables specified in the modle formula will be found.

random

A character vector listing the predictors to be considered random.

type

The "type" of test.

restricted

Should EMS be computed assuming a restricted or unrestricted model.

Details

Computes the coefficients in the expressions for the expected mean squares for a given dataset.

This approach to analysis of variance is not recommended.

Value

Returns an object of class "ems" with components

call

the matched call.

restricted

logical indicating whether the EMS were computed for the restricted or unrestricted model.

variables

a logical vector indicating which model variables are random.

terms

a logical vector indicating which model terms are random.

EMS

a table of the coefficients in the expansions of the EMS.


SWotherspoon/EMS documentation built on May 10, 2019, 1:21 p.m.