dpb <
no...@non.net> wrote in message <kt6iil$dum$
1...@speranza.aioe.org>...
I think I thought that the design matrix was something mystical because of the eye-matrix that is part of the design matrix in the mvregress example. I found a function that creates a design matrix from a predictor matrix, x2fx. If 'interaction' is the right model for my case, then does this look right:
x=...;%prediction matrix, n x p
Y=...;%responces matrix, n x d
x=x2fx(x,'interaction');
[Yrow,Ycol]=size(Y);
X=cell(Yrow,1);
for j=1:Yrow
X{j}=[repmat(x(j,:),Ycol,1)];
end
[beta]=mvregress(X,Y);
-Aino