R/weights.manyglm.R

weights.manyglm <- function (object, type = c("prior", "working"), ...)
{
    type <- match.arg(type)
    res <- if (type == "prior")
        object$prior.weights
    else object$sqrt.weights
    res <- apply(res, 2, function(x) x^2)
    if (is.null(object$na.action))
        res
    else naresid(object$na.action, res)
}
eddelbuettel/mvabund-tests documentation built on May 15, 2019, 10:30 p.m.