design.matrix: Generate design matrix for two-way factorial analysis

Description Usage Arguments Value Author(s) See Also

View source: R/design.matrix.R

Description

This is an internal function to be called by ls.estimate to generate design matrix. Users should call ls.estimate whenever is possible.

Usage

1
  design.matrix(f1,f2)

Arguments

f1

a vector of length equal to the number of arrays. Each entry indicates the level of the first factor for corresponding array. The values of f1 should be 1,2,3,...

f2

a vector of length equal to the number of arrays. Each entry indicates the level of the second factor for the corresponding array. The values of f2 should be 1,2,3,... If the experimental has only one factor, let f2=0.

Value

The output is a list object.

X0

???

Xa

???

Xb

???

Author(s)

Baiyu Zhou zhouby98@stanford.edu & Weihong xu weihongx@stanford.edu

See Also

ls.estimate


TANOVA documentation built on May 29, 2017, 12:31 p.m.

Search within the TANOVA package
Search all R packages, documentation and source code