-
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: 2 comments 8 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.
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.