Dear Professor Cheung,
I am writing to seek your help regarding the Cor2DataFrame function.While converting correlation matrices into a dataframe using the function Cor2DataFrame (a list of 7 X 7 correlation matrices, list of corresponding sample sizes), we are receiving the following error: "Error in if (!is.pd(x.new)) stop("x is not positive definite!\n"): missing value where TRUE/FALSE needed". The error mentions that the matrices in the list are not positive definite. Further, we observed that the function is.pd(Matrix) outputs "NA" rather than TRUE/FALSE.
Please let us know your suggestions on how to overcome this issue.
Thank you for your time and help!
Best regards,
Aman Asija