Learn R Programming

sasLM (version 1.0.1)

e2: Get a Contrast Matrix for Type II SS

Description

Makes a contrast matrix for Type II SS.

Usage

e2(x, eps=1e-8)

Value

A contrast matrix for Type II SS.

Arguments

x

an output of ModelMatrix

eps

A value less than this is considered zero.

Author

Kyun-Seop Bae k@acr.kr

Details

It makes a contrast matrix for Type II SS. If zapsmall is used, the result becomes less accurate.

Examples

Run this code
  round(e2(ModelMatrix(uptake ~ Plant + Type + Treatment + conc, CO2)), 12)
  round(e2(ModelMatrix(uptake ~ Type, CO2)), 12)
  round(e2(ModelMatrix(uptake ~ Type - 1, CO2)), 12)

Run the code above in your browser using DataLab