# Robust adjustment factors -----------------------------------------------
A <-
function(x, pred) {
sum(pred * x^2) - ((sum(pred * x))^2) / (sum(pred))
}
B <-
function(x, pred, res) {
sum((res^2) * (x - (sum(pred * x)) / (sum(pred)))^2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.