Nothing
LSM <-
function(x,p)
{
x <- as.matrix(x)
n <- nrow(x)
xmat <- matrix(1,nrow=n-p,ncol=p+1)
index <- p:(n-1)
for(i in 1:p)
{xmat[,i] <- x[index,1]
index <- index-1
}
y <- x[(p+1):n,1]
b <- solve( t(xmat) %*% xmat) %*% t(xmat) %*% y
e <- y - xmat %*% b
return(list(coef=b,resid=e))
}
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.