mcfDiff() Error: Error in if (max_res_ij > 0) { : missing value where TRUE/FALSE needed #11
Replies: 3 comments 3 replies
-
Thanks for reporting this issue. I will investigate when I get a chance. |
Beta Was this translation helpful? Give feedback.
-
Hi Wenjie, There are not multiple censoring times, but Thank you in advance! |
Beta Was this translation helpful? Give feedback.
-
The error was (as expected) 100% on my end - I did not realize that I needed to add a row for people who had an event at their last observed time to indicate that they were also censored at that time, which I see from your example is necessary.
Thank you very much for your patience and time, apologies that I did not catch it myself. |
Beta Was this translation helpful? Give feedback.
-
Hello,
First of all, thank you very much for this package! It has been extremely helpful in conducting my thesis.
I am trying to conduct a statistical test of the difference between two groups' MCF, both of which are in one MCF object. I had no issues in creating or plotting the object itself and looking at the object, there are no missing values or extreme values. However, when I try to use the mcfDiff() function on the object, I get the following warnings before it aborts with the error in the title:
I cannot share my data, but below is my code. tstop and tstart are integers representing the stop and start times respectively per row, status is a 1/0 indicator of event, miss_sexmin is a 1/0 indicator of group, and dnweight is a column representing with the sampling weights.
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions