-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running doIMRMC on Viper data set #190
Comments
I've done a bit of digging and this is the best I've come up with so far. The error occurs in the doAUCmrmcCov function. Specifically, in the lines of code below, all values in both numer1234 and denom1234 are set to 0:
Later, the former is divided by the latter:
Which results in NaN for the first four values of m.biased. This eventually propagates to covAUC, also set to NaN.
This is later used in a conditional statement:
Which throws the exception. I'm afraid I am not familiar enough with this field to know what is supposed to be occurring. Should the first 4 entries of m.biased be 0 instead of NaN? Any help would be greatly appreciated! |
I believe you have a problem formatting your data. Without the data, I am unable to diagnose your problem. I am also just checking in today and will be on leave. Additional responses will be delayed. |
Thanks for your response, and for the heads up re: delayed responses going forward. Regarding data, it came from installing this package (viperData 1.0.2): https://github.com/DIDSR/viperData/releases/download/1.0.2/viperData_1.0.2.tar.gz I'm using iMRMC 2.1.0 The code was copied and pasted from https://github.com/DIDSR/iMRMC/wiki/Non-inferiority-by-iMRMC. For convenience, I've included it all below:
|
Hi, I'm interested in using the iMRMC R package to analyze data for a non-inferiority trial I'm running. As a first step, I have been trying to replicate the analysis here: https://github.com/DIDSR/iMRMC/wiki/Non-inferiority-by-iMRMC.
However, when I execute this line of code:
I get this error:
Error in if (covAUC < 0) { : missing value where TRUE/FALSE needed
I also tried my own dataset and got the same exception. Do you have any thoughts on what I could be doing wrong? Apologies if this answer is obvious, but I'm new to R.
The text was updated successfully, but these errors were encountered: