79508088

Date: 2025-03-14 03:30:28
Score: 8 🚩
Natty:
Report link

I used this command to get the expected output:

`Thyroid$cancer <- relevel(Thyroid$cancer, ref = "No")``

The default in R ia No but it did not work here and I have no idea why. I had to specify the reference using the above coce. Any answer as to why R did not use "No" as the default will be appreciated.

R for an unknown reason to me used "Yes" as the reference. I am not sure if I was supposed to declare the outcome as factor to fix this issue??

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): did not work
  • RegEx Blacklisted phrase (1.5): fix this issue??
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Biostat