R/coef.cca.R

"coef.cca" <-
function (object, ...) 
{
    if(is.null(object$CCA))
        stop("unconstrained models do not have coefficients")
    Q <- object$CCA$QR
    u <- object$CCA$u
    u <- sweep(u, 1, sqrt(object$rowsum), "*")
    qr.coef(Q, u)
}

Try the vegan package in your browser

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

vegan documentation built on May 2, 2019, 5:51 p.m.