`fitted.cca` <-
function (object, model = c("CCA","CA","pCCA"), type = c("response", "working"),
...)
{
type <- match.arg(type)
model <- match.arg(model)
gtot <- object$grand.total
rc <- object$rowsum %o% object$colsum
if (model == "pCCA")
Xbar <- object$pCCA$Fit
else
Xbar <- object[[model]]$Xbar
if (model == "CCA")
Xbar <- qr.fitted(object$CCA$QR, Xbar)
if (type == "response")
Xbar <- (Xbar * sqrt(rc) + rc) * gtot
Xbar
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.