"rse" <- function(object, resvar = FALSE)
{
if (!is.null(object$"objList"))
{
fitValue <- object$"minval"
} else {
fitValue <- object$"fit"$"value"
}
rse <- switch(object$"type",
"continuous" = fitValue / df.residual(object),
"binomial" = NA,
"Poisson" = NA,
"event" = NA,
"standard" = fitValue / df.residual(object))
if (resvar)
{
rse
} else {
sqrt(rse)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.