[S] Design matrix from aov

Christian Hoffmann (christian.hoffmann@wsl.ch)
Mon, 06 Jul 1998 15:51:56 +0200


Hi all,

For a manova, Y = X*B + U, I would like to learn a fix so that aov (or lm,
or what ever) returns the design matrix X.
aov will return as "residuals" or "fitted.values" only those lines which
do not have any NA in the data matrix Y. So I will have to compute the
lacking residuals (or fitted.values) by matrix multiplication which
benevolently adds 0 in the matrix multiplications where there is a term
with one factor equal to NA.

Any suggestions?

Thank you very much

Christian W. Hoffmann
Swiss Federal Institute for Forest, Snow and Landscape Research
CH-8903 Birmensdorf, Switzerland
phone: ++41-1-739 22 77 fax : ++41-1-739 22 15 e-mail: hoffmann@wsl.ch
WWW: http://www.wsl.ch/wsidb/leute/cho/choHPENG.html
I prefer WWW pages which can be viewed best with *any* browser, contain
*no* cookies, *no* Java, *no* frames, and *no* required images !
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news