By default the reference level is whatever is first when factorising it. Change this so the user can specify what level they want as the reference variable in their model.
Implement this by:
"relevel(factor, ref = "reference level") - it's from the stats package"
By default the reference level is whatever is first when factorising it. Change this so the user can specify what level they want as the reference variable in their model.
Implement this by:
"relevel(factor, ref = "reference level") - it's from the stats package"