Displaying 1 result from an estimated 1 matches for "mothdata".
Did you mean:
mathdata
2010 Aug 10
0
Error: the leading minor of order 6 is not positive definite
...guys,
I'm trying to run a Canonical Correlation Analysis (CCA) between two data
sets. But for my case I am dealing with data sets(which are stored as two
matrices X and Y) in which the number of experimental units is greater than
the number of variables, so I want to use a sample from my "mothdata" data
set which I store in a matrix called "Yr". I am using the cc() function.
Here is my R code:
> Yr <- as.matrix(mothdata[, sample(1:422, size = 10)])
> res.cc <- cc(Yr, X)
But I am getting this error:
Error in chol.default(Cmat) :
the leading minor of order 6 is...