e2: Get a Contrast Matrix for Type II SS

View source: R/e2.R

e2R Documentation

Get a Contrast Matrix for Type II SS

Description

Makes a contrast matrix for type II SS.

Usage

  e2(x, eps=1e-8)

Arguments

x

an output of ModelMatrix

eps

Less than this value is considered as zero.

Details

It makes a contrast matrix for type II SS. If zapsmall is used, the result becomes more inaccurate.

Value

A contrast matrix for type II SS.

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

  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)

sasLM documentation built on Oct. 2, 2024, 9:06 a.m.