EMS {sasLM}R Documentation

Expected Mean Square Formula

Description

Calculates a formula table for expected mean square of the given contrast. The default is for Type III SS.

Usage

  EMS(Formula, Data, Type=3, eps=1e-8)

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

Type

type of sum of squares. The default is 3. Type 4 is not supported yet.

eps

Less than this value is considered as zero.

Details

This is necessary for further hypothesis tests of nesting factors.

Value

A coefficient matrix for Type III expected mean square

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

  f1 = log(CMAX) ~ SEQ/SUBJ + PRD + TRT
  EMS(f1, BEdata)
  EMS(f1, BEdata, Type=1)
  EMS(f1, BEdata, Type=2)

[Package sasLM version 0.10.2 Index]