Help needed in the C2W4 exercise: Harrell C-index calculation

Hi all,

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

Thanks!

Hi @edgarbc,

Can you please let me know the exercise number and the cell where you are getting this error?

Thanks,
Sharob

Hi @sharob.sinha,

The cell is # UNQ_C3 from the Exercise 3 - harrell_c in the C2W4 Assignment.

Thanks!

Hi @edgarbc,

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

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!