Learn R Programming

sasLM (version 0.6.0)

EMS: 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.

Value

A coefficient matrix for Type III expected mean square

Details

This is necessary for further hypothesis test of nesting factors.

Examples

Run this code
# NOT RUN {
f1 = log(CMAX) ~ SEQ/SUBJ + PRD + TRT
EMS(f1, BEdata)
EMS(f1, BEdata, Type=1)
EMS(f1, BEdata, Type=2)
# }

Run the code above in your browser using DataLab