I am facing a few issues when implementing linear regressions using R. First, I would like to know how you can explicitly ask R to consider parameters as factors (for example, if I have a variable sex with 1 for Male and 0 for Female), assuming it does not recognize them as factors automatically.
Conversely, assuming R considers some parameters as factors whereas they are actually not, how can I tell R that those very parameters should not be regarded as factors?