Estimates the ensemble weights of a superlearner by minimizing the cross-validated MSE via non-negative least squares regression. The estimated weights are non-negative and normalized to sum to one.
Arguments
- y
(numeric) Response vector.
- pred
(matrix) Matrix of cross-validated predictions with one column per candidate learner.
- method
(character) Quadratic-programming solver used to compute the non-negative least squares weights. Either
"quadprog"(default, using quadprog::solve.QP) or"nnls"(using nnls::nnls).- ...
Additional arguments (currently ignored).
Details
targeted:::metalearner_nnls2 is an internal wrapper for using the
"nnls" package instead of "quadprog".
