R/weighted.residuals.manylm.R

Defines functions weighted.residuals.manylm

weighted.residuals.manylm <- function(obj, drop0 = TRUE){
    w <- weights(obj)
    r <- as.matrix(residuals(obj, type = "deviance"))
    if (drop0 && !is.null(w)) 
        r[w != 0,,drop=FALSE]
    else r

}

#setMethod("weighted.residuals", "manylm", weighted.residuals.manylm)

Try the mvabund package in your browser

Any scripts or data that you put into this service are public.

mvabund documentation built on March 18, 2022, 7:25 p.m.