When "rather than" is used as a conjunction, it is important to make the two things thus connected parallel in form:
"I like working in a bakery rather than working in a factory."
But sometimes "rather than" is a preposition, and then the two things being compared will not necessarily be in the same form.
[From] Bryan Garner's guide:
"Rather than staying home on a Saturday night, we went out to six different bars."
From The Oxford Dictionary of American Usage and Styleby Bryan Garner. Copyright 1995 by Bryan A. Garner. Published by Oxford University Press, Inc., Oxford University Press: OUP USA Home, and used with the gracious consent of Oxford University Press.
Student or Learner