y = x * b + e
with mean (e) =
0
and cov (vec (e)) = (s^2)*o
,
where
Y is a T by p matrix, X is a T by k
matrix, B is a k by p matrix, E is a T by
p matrix, and O is a Tp by Tp
matrix.
Each row of Y and X is an observation and each column a variable.
The return values beta, v, and r are defined as follows.
s^2
.
r = y - x *
beta
.
y = x*b + e
with
mean (e) = 0
and cov (vec (e)) = kron (s,
I)
.
where
y is a t by p matrix, X is a t by k
matrix, B is a k by p matrix, and e is a t
by p matrix.
Each row of y and x is an observation and each column a variable.
The return values beta, sigma, and r are defined as follows.
beta = pinv (x) *
y
, where pinv (x)
denotes the pseudoinverse of
x.
sigma = (y-x*beta)' * (y-x*beta) / (t-rank(x))
r = y - x * beta
.
Go to the first, previous, next, last section, table of contents.