Learn R Programming

sasLM (version 0.6.0)

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

Value

Returns a contrast matrix for type II SS.

Details

It makes a contrast matrix for type II SS.

Examples

Run this code
# NOT RUN {
  round(e2(uptake ~ Plant + Type + Treatment + conc, CO2), 12)
  round(e2(uptake ~ Type, CO2), 12)
  round(e2(uptake ~ Type - 1, CO2), 12)
# }

Run the code above in your browser using DataLab