Interesting. 2 lessons here:
1. Don't use LLM output code uncritically, even if it runs smoothly
2. As developers we can protect our #rstats code from such problems e.g. with rlang.r-lib.org/reference/ch...
Francisco Rodriguez-Sanchez
student used some AI-assisted code to compute ROC stats with weights and the AI hallucinated pROC::roc(…, weights = weights). (the function doesn’t have a weights argument.) and because the function has a … argument, the fake weights argument was ignored without any warning