Hi! I kept getting this error message "'relevel' only for (unordered) factors" for my variable biological sex. I tried to fix it with as.factor( ) but the error kept recurring. Here's the code:
Could anyone let me know what I did wrong? Any help is appreciated. Thank you!