Nothing
mpls <- function(y, x) {
dm <- dim(x)
n <- dm[1] ; p <- dm[2]
d <- dim(y)[2]
dvec <- crossprod(x, y)
xx <- crossprod(x)
A <- diag(p)
bvec <- rep(0, p)
mse <- numeric(d)
be <- matrix(nrow = p, ncol = d)
for ( j in 1:d ) {
f <- quadprog::solve.QP(Dmat = xx, dvec = dvec[, j], Amat = A, bvec = bvec)
be[, j] <- f$solution
mse[j] <- f$value
}
mse <- ( 2 * mse + Rfast::colsums(y^2) ) / n
rownames(be) <- colnames(x)
list(be = be, mse = mse)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.