myr2score=function(m,o){ mean_y<-mean(m) ss_tot <- sum((m - mean_y) ^ 2) ss_res = sum((m - o) ^ 2) r2 <- 1 - (ss_res / ss_tot) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.