##' .. content for description{} (no empty lines) ..
##'
##' .. content for details{} ..
##' @title Rsquared
##' @return
##' @author Spencer Woody
##'
rsq <- function(y, yhat) {
ssr <- sum((y - yhat)^2)
sst <- sum((y - mean(y))^2)
1 - ssr / sst
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.