https://github.com/cran/nFactors
Revision c9833e40e7af6531f93c92bb4d2ab8a87541faad authored by Gilles Raiche on 09 December 2009, 00:00:00 UTC, committed by Gabor Csardi on 09 December 2009, 00:00:00 UTC
1 parent b6fe861
Raw File
Tip revision: c9833e40e7af6531f93c92bb4d2ab8a87541faad authored by Gilles Raiche on 09 December 2009, 00:00:00 UTC
version 2.3
Tip revision: c9833e4
makeCor.r
makeCor <-
function(x) {
 if (is.matrix(x)) stop("x is not a vector.")
 upper       <- matrix(x,ncol=10, byrow=FALSE)
 diag(upper) <- 0
 lower <- matrix(x,ncol=10, byrow=TRUE)
 res <- lower + upper
 return(res)
 }
back to top