Nothing
VIF <-
function(X, dummy=FALSE, pos=NULL){
X = as.matrix(X)
if (dim(X)[2] == 2){
salida = "At least 3 independent variables are needed (including the intercept)"
} else {
x = as.matrix(X[,-1])
vifs = diag(solve(cor(x)))
if (dummy == TRUE){
salida = vifs[-(pos-1)]
} else {
salida = vifs
}
}
return(salida)
}
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.