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(Formula, Data, eps=1e-8)

Arguments

Formula

a conventional formula for a linear model

Data

a data.frame to be analyzed

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(uptake ~ Plant + Type + Treatment + conc, CO2), 12)
  round(e2(uptake ~ Type, CO2), 12)
  round(e2(uptake ~ Type - 1, CO2), 12)

sasLM documentation built on Sept. 5, 2022, 5:11 p.m.