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
Dear Aman,
Please attach the data and R code.
Best,
Mike
Dear Professor Cheung,
Please find attached the following files:
(1) Sample data
(2) R code
(3) Screenshots of the data and the error
Knowing your thoughts on the error would be very helpful.
Thank you for your time and help!
Best regards,
Aman Asija
Dear Aman,
There are errors because there are not enough data for the analysis.
Best,
Mike
Dear Professor Cheung,
Thank you for helping!
Best regards,
Aman Asija