#' compute sigma from fit
#'
#' @param fit object
#'
#' @return sigma
#'
blbsigma <- function(fit) {
p <- fit$rank
e <- fit$residuals
w <- fit$weights
sqrt(sum(w * (e^2)) / (sum(w) - p))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.