qpsol. Given one argument,
qpsol_options returns the value of the corresponding option. If
no arguments are supplied, the names of all the available options and
their current values are displayed.
The second argument is a string containing the name of the objective function to call. The objective function must be of the form
y = phi (x)
where x is a vector and y is a scalar.
npsol. Given one argument,
npsol_options returns the value of the corresponding option. If
no arguments are supplied, the names of all the available options and
their current values are displayed.
Y = X * B + E, mean(E) = 0, cov(vec(E)) = (s^2)*O
with
Y an T x p matrix X an T x k matrix B an k x p matrix E an T x p matrix O an Tp x Tp matrix
Each row of Y and X is an observation and each column a variable.
Returns BETA, v, and, R, where BETA is the GLS estimator for B, v is the GLS estimator for s^2, and R = Y - X*BETA is the matrix of GLS residuals.
Y = X*B + E, mean (E) = 0, cov (vec (E)) = kron (S, I)
with
Y an T x p matrix X an T x k matrix B an k x p matrix E an T x p matrix
Each row of Y and X is an observation and each column a variable.
Returns BETA, SIGMA, and R, where BETA is the OLS estimator for B, i.e.
BETA = pinv(X)*Y,
where pinv(X) denotes the pseudoinverse of X, SIGMA is the OLS estimator for the matrix S, i.e.
SIGMA = (Y - X*BETA)'*(Y - X*BETA) / (T - rank(X))
and R = Y - X*BETA is the matrix of OLS residuals.
Go to the first, previous, next, last section, table of contents.