-
Hi there, I recently learned about the latrend package and started using it for clustering a big longitudinal data set. In FUN(newX[, i], ...) : no non-missing arguments to min; returning Inf Not sure what this means. So no idea how I can correct this. Then when I do "summary(model)" it gives me the following error: Error in postprob(object, ...) : I'm assuming the error is caused by the warnings I get but I'm very new to using this package and not sure how to correct this. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
Hello, Thanks for the detailed write-up. Are you using latrend version 1.3? I'm unable to find where the warnings might be coming from in the package code, could you set The error in postprob() is a consequence of the internal KmL model being different from what latrend is expecting. I've added strict checks to the lcModel functions such as postprob() to prevent (silent) faulty output. Most likely, the trigger for the issue you are experiencing is that your dataset contains missing values. I've improved the robustness of latrend to missing data based on previous reports this year, but it would seem you may have found another special case that needs fixing. |
Beta Was this translation helpful? Give feedback.
-
Hi @niekdt, I just updated the latrend installation and rerun the code. But still getting the same error msgs as before. See below:
~ Fast KmL ~
Not sure whether I did the update correctly to reflect your fixes to the issue. What I did was this: wnloading GitHub repo philips-software/latrend@v1.4.0 1: All Enter one or more numbers, or an empty line to skip updates: 1 Your help is much appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hey @niekdt, thanks for this fantastic package and its ongoing development! I decided to add a comment in this thread as I think I have a very similar problem discussed here but with the GCKM method:
I have run KML prior to GCKM and got similar warnings as above but no errors. The GCKM was run through latrendBatch which resulted with no errors, however when trying to call the summary I get the error in the quote above. My patient data also contains different time lengths that were censored due to deaths. Would the recommendation be the same here - use The big problem with that is runtimes and convergence for my dataset. I have ~350k patients with ~5mil records and the lcmm methods are certainly struggling there, hence I was trying to use the methods outlined in this handy summary in your documentation. Any advice would be greatly appreciated! :) |
Beta Was this translation helpful? Give feedback.
I was able to reproduce the errors you were getting when using
lcModelKML
. These are now fixed (see #111) in the latest commit on master.