Closed cmlakhan closed 1 year ago
Hi Chirag,
Thanks for pointing it out. For the input LD matrix, it is ok to use as.matrix function. The error message is about the usage of Matrix inside the CARMA main function, where CARMA defines model space using dgTMatrix format. The error message is only about the function as() with the arguments as(. "dgTMatrix") when CARMA defines the model space.
I have switched it from as(
Thanks Zikun! So I should just install the updated version of the package and it should work?
Yes, it is just the warning messages of using dgTMatrix and dgCMatrix of the Matrix package. I updated the input according to the instruction from the package. I tested it on my side, there is no warning message anymore.
BTW, the original warning message should not prevent CARMA from executing, so if CARMA was stopped, maybe there is something else went wrong.
I am getting an error message
Error: as(<matrix>, "dgTMatrix") is deprecated since Matrix 1.5-0; do as(as(as(., "dMatrix"), "generalMatrix"), "TsparseMatrix") instead
So I'm not sure if I should do something different. I upgraded to the newest version of your repo as well so I'm not sure.
I will experiment with your test files and see if I am doing something differently, will let you know what I find out.
Wait a sec... I found that I updated the developing version of CARMA, so the main function actually has been updated yet, that is why you still received warning message. Give me a minute, I will update the main function of CARMA, see if there is still warning message. I will let you know once I am done.
I just updated the CARMA main function "CARMA". There should not be any warning message now, but please let me know if there is still any... Thanks.
Seems to be working now, thanks a bunch!
Great!
I am using R version 4.2.2 and am getting an error trying to run CARMA
this is what I ran
and this is the error I am getting
It seems CARMA does not like how the ld matrix is being cast as a Matrix, has anyone else had this issue?