I am not sure what is wrong with the logic to calculate my Harrell c-index. I get the error:
Error: Wrong output for Test Case 1.
Error: Wrong output for Test Case 3.
Error: Wrong output for Test Case 4.
Error: Wrong output for Test Case 5.
Error: Wrong output for Test Case 6.
3 Tests passed
5 Tests failed
@Mubsi can you please have a look? my lab ID is cyzfpsly
Your “check for concordant” block is not giving the right logic, also “check if permissible” is not covering all the logic (hint: you might want to include <= or >=). Kindly look into these logic.
Thank you @sharob.sinha, can you please explain a bit more what is the concordant block you are referring to? I am still confused about the logic. Cant see what is wrong. Thank you again!