Nothing
pls <- function(y, x) {
dm <- dim(x)
n <- dm[1] ; p <- dm[2]
dvec <- as.vector( crossprod(x, y) )
xx <- crossprod(x)
A <- diag(p)
bvec <- rep(0, p)
f <- quadprog::solve.QP(Dmat = xx, dvec = dvec, Amat = A, bvec = bvec)
be <- as.matrix( f$solution )
rownames(be) <- colnames(x)
mse <- ( sum(y^2) + 2 * f$value ) / n
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.