R/print.tepGPLS.R

print.tepGPLS <-
function (x,...) {

#list(fi=fi,di=di,ci=ci,ri=ri,fj=fj,cj=cj,rj=rj,dj=dj,t=taus,M=M,W=W,pdq=gpdq_results)

  res.tepGPLS <- x
  if (!inherits(res.tepGPLS, "tepGPLS")) stop ("no convenient data")
  cat("**Results for Partial Least Squares**\n")
  cat ("The analysis was performed on ", nrow(res.tepGPLS$lx),
       "individuals, described by", nrow(res.tepGPLS$fi), "variables from DATA1 and\n" , nrow(res.tepGPLS$fj), "variables from DATA2\n")
  cat("*The results are available in the following objects:\n\n")
  res <- array("", c(18, 2), list(1:18, c("name", "description")))
  
  res[1,] <- c("$fi","Factor scores of the rows")
  res[2,] <- c("$di","Squared distances of the rows")
  res[3,] <- c("$ci","Contributions of the rows")
  res[4,] <- c("$ri", "Cosines of the rows")
  res[5,] <- c("$fj","Factor scores of the columns")
  res[6,] <- c("$dj","square distances of the columns")
  res[7,] <- c("$cj","Contributions for the columns")
  res[8,] <- c("$rj", "Cosines of the columns")
  res[9,] <- c("$lx", "Latent variables of X (DATA1)")
  res[10,] <- c("$ly", "Latent variables of Y (DATA2)")      
  res[11,] <- c("$t","Explained Variance")
  res[12,] <- c("$eigs","Eigenvalues")  
  res[13,] <- c("$W1","weights for DATA1")
  res[14,] <- c("$W2","weights for DATA2")    
  res[15,] <- c("$pdq","GSVD data")
  res[16,] <- c("$X","X matrix to decompose")
  res[17,] <- c("$data1.norm","center and scale for DATA1")
  res[18,] <- c("$data2.norm","center and scale for DATA2")    
  print(res)

}

Try the TExPosition package in your browser

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

TExPosition documentation built on May 2, 2019, 7:27 a.m.