Nothing
rSquared <- function(model, y) {
## Determine R2 of a fitted model
if (class(model)!="try-error"){
ssTot <- sum((y - mean(y, na.rm=TRUE))^2, na.rm=TRUE)
ssRes <- sum( (y - predict(model))^2 , na.rm=TRUE)
r2 <- 1 - ssRes/ssTot
} else {
r2 <- NA_real_
}
return(r2)
}
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.